I want to use this very useful statistics library (
https://wiki.freepascal.org/DMath ) in my programs but I am not sure how to install it to use its functions.
I have downloaded the zip file and unzipped it. Following is the output of tree command showing all files and folders:
.
├── changes.txt
├── demo
│ ├── bgi
│ │ ├── curfit
│ │ │ ├── mcsim.pas
│ │ │ ├── reglin.pas
│ │ │ ├── regmult.pas
│ │ │ ├── regnlin.pas
│ │ │ ├── regpoly.pas
│ │ │ └── wreglin.pas
│ │ ├── fmath
│ │ │ ├── contour.pas
│ │ │ └── plot.pas
│ │ ├── fourier
│ │ │ ├── filter.pas
│ │ │ └── testfft.pas
│ │ ├── nist
│ │ │ ├── nist.dat
│ │ │ └── nist.pas
│ │ ├── regmodel
│ │ │ ├── exlin.dat
│ │ │ ├── frac.dat
│ │ │ ├── gamma.dat
│ │ │ ├── hill.dat
│ │ │ ├── iexpo.dat
│ │ │ ├── iv2.dat
│ │ │ ├── logist.dat
│ │ │ ├── michael.dat
│ │ │ ├── michint.dat
│ │ │ ├── oral1.dat
│ │ │ ├── oral2.dat
│ │ │ ├── regamma.pas
│ │ │ ├── regexlin.pas
│ │ │ ├── regexpo.pas
│ │ │ ├── regfrac.pas
│ │ │ ├── reghill.pas
│ │ │ ├── regiexpo.pas
│ │ │ ├── reglogi.pas
│ │ │ ├── regmich.pas
│ │ │ ├── regmint.pas
│ │ │ └── regutils.pas
│ │ └── stat
│ │ └── histo.pas
│ ├── console
│ │ ├── complex
│ │ │ └── testcomp.pas
│ │ ├── curfit
│ │ │ └── pcatest.pas
│ │ ├── equation
│ │ │ ├── numjac.inc
│ │ │ ├── testbis.pas
│ │ │ ├── testbrdn.pas
│ │ │ ├── testnr1.pas
│ │ │ ├── testnr.pas
│ │ │ └── testsec.pas
│ │ ├── fmath
│ │ │ ├── eval1.pas
│ │ │ ├── eval2.pas
│ │ │ ├── specfunc.dat
│ │ │ ├── specfunc.pas
│ │ │ ├── speed.pas
│ │ │ ├── testfunc.pas
│ │ │ ├── testmach.pas
│ │ │ ├── testw.pas
│ │ │ └── texdemo.pas
│ │ ├── fourier
│ │ │ └── freq.pas
│ │ ├── integral
│ │ │ ├── conv.pas
│ │ │ ├── convtrap.pas
│ │ │ ├── gauss.pas
│ │ │ ├── test_rkf.pas
│ │ │ └── trap.pas
│ │ ├── matrices
│ │ │ ├── cholesk.pas
│ │ │ ├── detinv.pas
│ │ │ ├── eigensym.pas
│ │ │ ├── eigenval.pas
│ │ │ ├── eigenvec.pas
│ │ │ ├── hilbert.pas
│ │ │ ├── lineq1.pas
│ │ │ ├── lineqm.pas
│ │ │ ├── matrix1.dat
│ │ │ ├── matrix2.dat
│ │ │ ├── matrix3.dat
│ │ │ ├── matrix4.dat
│ │ │ ├── test_lu.pas
│ │ │ ├── test_qr.pas
│ │ │ └── test_svd.pas
│ │ ├── optim
│ │ │ ├── minline.pas
│ │ │ ├── numgrad.inc
│ │ │ ├── numhess.inc
│ │ │ ├── testbfgs.pas
│ │ │ ├── testmarq.pas
│ │ │ ├── testnewt.pas
│ │ │ └── testsimp.pas
│ │ ├── polynom
│ │ │ ├── evalfrac.pas
│ │ │ ├── evalpoly.pas
│ │ │ └── polyroot.pas
│ │ ├── proba
│ │ │ └── binom.pas
│ │ ├── random
│ │ │ ├── mt.txt
│ │ │ ├── randfile.pas
│ │ │ ├── ranmul.dat
│ │ │ ├── ranmull.dat
│ │ │ ├── ranmull.pas
│ │ │ ├── ranmul.pas
│ │ │ ├── test_ga.pas
│ │ │ ├── testmcmc.dat
│ │ │ ├── testmcmc.pas
│ │ │ ├── testmt.pas
│ │ │ ├── testmwc.pas
│ │ │ ├── testnorm.pas
│ │ │ ├── test_sa.pas
│ │ │ ├── testuvag.pas
│ │ │ └── uvag.txt
│ │ └── stat
│ │ ├── av1.pas
│ │ ├── av2a.pas
│ │ ├── av2.pas
│ │ ├── khi2.pas
│ │ ├── stat.pas
│ │ └── student.pas
│ └── gui
│ ├── calc
│ │ ├── calc.dpr
│ │ ├── unit1.dfm
│ │ └── unit1.pas
│ ├── curfit
│ │ ├── curfit.dpr
│ │ ├── graph.gcf
│ │ ├── main.dfm
│ │ ├── main.pas
│ │ ├── reglin.dat
│ │ └── regpol.dat
│ ├── dialogs
│ │ ├── algorith.dfm
│ │ ├── algorith.pas
│ │ ├── aspect.dfm
│ │ ├── aspect.pas
│ │ ├── errfunc.dfm
│ │ ├── errfunc.pas
│ │ ├── format.dfm
│ │ ├── format.pas
│ │ ├── graphopt.dfm
│ │ ├── graphopt.pas
│ │ ├── help.dfm
│ │ ├── help.pas
│ │ ├── param.dfm
│ │ ├── param.pas
│ │ ├── regfunc.dfm
│ │ ├── regfunc.pas
│ │ ├── select.dfm
│ │ └── select.pas
│ ├── fplot
│ │ ├── fplot.dpr
│ │ ├── main.dfm
│ │ └── main.pas
│ ├── hsv_rgb
│ │ ├── hsv_rgb.dpr
│ │ ├── main.dfm
│ │ └── main.pas
│ ├── linsolve
│ │ ├── linsolve.dpr
│ │ ├── main.dfm
│ │ └── main.pas
│ ├── mandel
│ │ ├── julia_2_a.par
│ │ ├── julia_2_b.par
│ │ ├── julia_5.par
│ │ ├── main.dfm
│ │ ├── main.pas
│ │ ├── mandel_2.par
│ │ ├── mandel_3_5.par
│ │ ├── mandel_3_85_a.par
│ │ ├── mandel_3_85.par
│ │ ├── mandel_3.par
│ │ ├── mandel_4.par
│ │ ├── mandel.dpr
│ │ ├── seahorse_01.par
│ │ ├── seahorse_02a.par
│ │ ├── seahorse_02b.par
│ │ ├── seahorse_02.par
│ │ ├── seahorse_03a.par
│ │ ├── seahorse_03.par
│ │ ├── seahorse_04.par
│ │ ├── seahorse_05.par
│ │ ├── seahorse_06.par
│ │ ├── seahorse_07.par
│ │ ├── seahorse_08.par
│ │ ├── seahorse_09.par
│ │ ├── seahorse_10.par
│ │ ├── seahorse_11.par
│ │ └── seahorse_12.par
│ ├── polysolve
│ │ ├── coef.dat
│ │ ├── main.dfm
│ │ ├── main.pas
│ │ └── polysolve.dpr
│ ├── probcalc
│ │ ├── probcalc.dpr
│ │ ├── unit1.dfm
│ │ └── unit1.pas
│ └── quadrit
│ ├── bifur1.dfm
│ ├── bifur1.pas
│ ├── bifur.dpr
│ ├── fft1.dfm
│ ├── fft1.pas
│ ├── fft.dpr
│ ├── orbit1.dfm
│ ├── orbit1.pas
│ └── orbit.dpr
├── dll
│ ├── dcompil.bat
│ ├── dmath.dpr
│ ├── dmath.pas
│ ├── fpcompil.bat
│ ├── fpcompil.sh
│ ├── lcompil.bat
│ └── lcompil.sh
├── dmat090_statistics_pas.zip
├── dmath.pdf
├── dmath_tree.txt
├── dmath.txt
├── lgpl.txt
└── units
├── filelist.txt
├── types.inc
├── uanova1.pas
├── uanova2.pas
├── ubalance.pas
├── ubalbak.pas
├── ubartlet.pas
├── ubeta.pas
├── ubfgs.pas
├── ubinom.pas
├── ubisect.pas
├── ubroyden.pas
├── ucholesk.pas
├── ucomplex.pas
├── ucompvec.pas
├── ucorrel.pas
├── udigamma.pas
├── udistrib.pas
├── ueigsym.pas
├── ueigval.pas
├── ueigvec.pas
├── uelmhes.pas
├── ueltran.pas
├── uevalfit.pas
├── ueval.pas
├── uexlfit.pas
├── uexpdist.pas
├── uexpfit.pas
├── ufact.pas
├── ufft.pas
├── ufracfit.pas
├── ugamdist.pas
├── ugamfit.pas
├── ugamma.pas
├── ugausjor.pas
├── ugausleg.pas
├── ugenalg.pas
├── ugoldsrc.pas
├── uhillfit.pas
├── uhqr2.pas
├── uhqr.pas
├── uhsvrgb.pas
├── uhyper.pas
├── uibeta.pas
├── uibtdist.pas
├── uiexpfit.pas
├── uigamma.pas
├── uigmdist.pas
├── uinterv.pas
├── uinvbeta.pas
├── uinvgam.pas
├── uinvnorm.pas
├── ujacobi.pas
├── ukhi2.pas
├── ulambert.pas
├── ulineq.pas
├── ulinfit.pas
├── ulinmin.pas
├── ulinminq.pas
├── ulogifit.pas
├── ulu.pas
├── umarq.pas
├── umath.pas
├── umcmc.pas
├── umeansd.pas
├── umedian.pas
├── umichfit.pas
├── uminbrak.pas
├── uminmax.pas
├── umintfit.pas
├── umodels.pas
├── umulfit.pas
├── unewteq.pas
├── unewteqs.pas
├── unewton.pas
├── unlfit.pas
├── unonpar.pas
├── unormal.pas
├── upca.pas
├── upkfit.pas
├── uplot.pas
├── upoidist.pas
├── upolev.pas
├── upolfit.pas
├── upolutil.pas
├── upolynom.pas
├── upowfit.pas
├── uqr.pas
├── uqsort.pas
├── urandom.pas
├── urangaus.pas
├── uranmt.pas
├── uranmult.pas
├── uranmwc.pas
├── uranuvag.pas
├── uregtest.pas
├── urkf.pas
├── urootpol.pas
├── uround.pas
├── urtpol1.pas
├── urtpol2.pas
├── urtpol3.pas
├── urtpol4.pas
├── usecant.pas
├── usimann.pas
├── usimplex.pas
├── uskew.pas
├── usnedeco.pas
├── ustdpair.pas
├── ustrings.pas
├── ustudind.pas
├── usvdfit.pas
├── usvd.pas
├── utexplot.pas
├── utrapint.pas
├── utrigo.pas
├── utypes.pas
├── uwinplot.pas
├── uwinstr.pas
└── uwoolf.pas
34 directories, 316 files
There is a units folder which has all unit .pas files. How do I get this folder in path of my own source files?
There is also a dll folder which has fpcompil.sh and lcompil.sh files for compilation for fp/linux and lazarus/linux, respectively. (I am working on Debian Stable Linux). I think if I run fpcompil.sh, all the units will be installed and be available for fpc command.
I think I will have to put `uses urandom` etc in my source files. I will appreciate if someone can clarify these issues.