1
Unit Routines Description
2
-----------------------------------------------------------------------
3
utypes SetErrCode Sets error code
4
* DefaultVal Sets error code and default function value
5
* MathErr Returns the error code
6
* SetAutoInit Sets the auto-initialization of arrays
7
* DimVector Allocates a real vector
8
* DimIntVector Allocates an integer vector
9
* DimCompVector Allocates a complex vector
10
* DimBoolVector Allocates a boolean vector
11
* DimStrVector Allocates a string vector
12
* DimMatrix Allocates a real matrix
13
* DimIntMatrix Allocates an integer matrix
14
* DimCompMatrix Allocates a complex matrix
15
* DimBoolMatrix Allocates a boolean matrix
16
* DimStrMatrix Allocates a string matrix
17
* DelVector Deallocates a real vector
18
* DelIntVector Deallocates an integer vector
19
* DelCompVector Deallocates a complex vector
20
* DelBoolVector Deallocates a boolean vector
21
* DelStrVector Deallocates a string vector
22
* DelMatrix Deallocates a real matrix
23
* DelIntMatrix Deallocates an integer matrix
24
* DelCompMatrix Deallocates a complex matrix
25
* DelBoolMatrix Deallocates a boolean matrix
26
* DelStrMatrix Deallocates a string matrix
27
uminmax FMin Minimum of 2 reals
28
* FMax Maximum of 2 reals
29
* IMin Minimum of 2 integers
30
* IMax Maximum of 2 integers
31
* Sgn Sign, Sgn(0) = 1
32
* Sgn0 Sign, Sgn(0) = 0
33
* DSgn DSgn(A, B) = Sgn(B) * |A|
34
* FSwap Exchanges 2 reals
35
* ISwap Exchanges 2 integers
36
uround RoundN Rounds a number to N decimal places
37
* Ceil Ceiling function
38
* Floor Floor function
39
umath Expo Exponential (with bound checking)
40
* Exp2 Exponential, base 2
41
* Exp10 Exponential, base 10
42
* Log Natural log (with bound checking)
46
* IntPower Power (integer exponent)
47
* Power Power (real exponent)
48
utrigo Pythag Sqrt(X^2 + Y^2)
49
* FixAngle Set argument in -Pi..Pi
53
* ArcTan2 Angle (Ox, OM) with M(X,Y)
54
uhyper Sinh Hyperbolic sine
55
* Cosh Hyperbolic cosine
56
* Tanh Hyperbolic tangent
57
* ArcSinh Inverse hyperbolic sine
58
* ArcCosh Inverse hyperbolic cosine
59
* ArcTanh Inverse hyperbolic tangent
60
* SinhCosh Sinh and Cosh
61
upolev PolEvl Polynomial evaluation (coeff. of x^n <> 1)
62
* P1Evl Polynomial evaluation (coeff. of x^n = 1)
63
ugamma Gamma Gamma function
64
* LnGamma Logarithm of Gamma function
65
* SgnGamma Sign of Gamma function
66
* Stirling Stirling's formula for Gamma
67
* StirLog Stirling's formula for LnGamma
68
udigamma DiGamma DiGamma function
69
* TriGamma TriGamma function
70
uigamma IGamma Incomplete Gamma function
71
* JGamma Complement of incomplete Gamma function
73
* Erfc Complement of error function
74
ubeta Beta Beta function
75
uibeta IBeta Incomplete Beta function
76
ulambert LambertW Lambert's W-function
78
ubinom Binomial Binomial coefficient
79
* PBinom Probability of binomial distribution
80
upoidist PPoisson Probability of Poisson distribution
81
uexpdist DExpo Density of exponential distribution
82
* FExpo Cumulative prob. of exponential dist.
83
unormal DNorm Density of standard normal distribution
84
ugamdist DBeta Density of Beta distribution
85
* DGamma Density of Gamma distribution
86
* DKhi2 Density of Khi-2 distribution
87
* DStudent Density of Student's distribution
88
* DSnedecor Density of Fisher-Snedecor distribution
89
uibtdist FBeta Cumulative prob. of Beta distribution
90
* FBinom Cumulative prob. of Binomial distribution
91
* FStudent Cumulative prob. of Student's distribution
92
* PStudent Prob(|t| > X) for Student's distribution
93
* FSnedecor Cumulative prob. of Fisher-Snedecor distribution
94
* PSnedecor Prob(F > X) for Fisher-Snedecor distribution
95
uigmdist FGamma Cumulative prob. of Gamma distribution
96
* FPoisson Cumulative prob. of Poisson distribution
97
* FNorm Cumulative prob. of standard normal distribution
98
* PNorm Prob(|U| > X) for standard normal distribution
99
* FKhi2 Cumulative prob. of Khi-2 distribution
100
* PKhi2 Prob(Khi2 > X) for Khi-2 distribution
101
uinvnorm InvNorm Inverse of normal distribution
102
uinvgam InvGamma Inverse of incomplete Gamma function
103
* InvKhi2 Inverse of khi-2 distribution
104
uinvbeta InvBeta Inverse of incomplete Beta function
105
* InvStudent Inverse of Student's t-distribution
106
* InvSnedecor Inverse of Snedecor's F-distribution
107
ucompvec CompVec Comparison of two vectors
108
ugausjor GaussJordan Linear equation system (Gauss-Jordan method)
109
ulineq LinEq Linear equation system (Gauss-Jordan method)
110
ucholesk Cholesky Cholesky factorization
111
ulu LU_Decomp LU decomposition
112
* LU_Solve Solves a system of equations after LU decomposition
113
uqr QR_Decomp QR decomposition
114
* QR_Solve Solves a system of equations after QR decomposition
115
usvd SV_Decomp Singular value decomposition
116
* SV_Solve Solves a system of equations after SV decomposition
117
* SV_SetZero Sets the lowest singular values to zero
118
* SV_Approx Approximates a matrix from its SV decomposition
119
ubalance Balance Balances a matrix and tries to isolate eigenvalues
120
ubalbak BalBak Back transformation of eigenvectors
121
uelmhes ElmHes Reduction of a square matrix to upper Hessenberg form
122
ueltran Eltran Save transformations used by ElmHes
123
uhqr Hqr Eigenvalues of a real upper Hessenberg matrix by the QR method
124
uhqr2 Hqr2 Eigenvalues and eigenvectors of a real upper Hessenberg matrix
125
ueigval EigenVals Eigenvalues of a general square matrix
126
ueigvec EigenVect Eigenvalues and eigenvectors of a general square matrix
127
ujacobi Jacobi Eigenvalues and eigenvectors of a symmetric matrix
128
uminbrak MinBrack Brackets a minimum of a function
129
ugoldsrc GoldSearch Minimization of a function of 1 variable (Golden Search method)
130
ulinmin LinMin Minimization of a function of several variables along a line
131
unewton Newton Minimization of a function of several var. (Newton's method)
132
* SaveNewton Save Newton iterations in a file
133
umarq Marquardt Minimization of a function of several var. (Marquardt's method)
134
* SaveMarquardt Save Marquardt iterations in a file
135
ubfgs BFGS Minimization of a function of several var. (BFGS method)
136
* SaveBFGS Save BFGS iterations in a file
137
usimplex Simplex Minimization of a function of several var. (simplex method)
138
* SaveSimplex Save simplex iterations in a file
139
ulinminq LinMinEq Minimization of a sum of squared functions along a line
140
ubisect RootBrack Brackets solution of equation
141
* Bisect Nonlinear equation (bisection method)
142
unewteq NewtEq Nonlinear equation (Newton-Raphson method)
143
usecant Secant Nonlinear equation (secant method)
144
unewteqs NewtEqs Nonlinear equation system (Newton-Raphson method)
145
ubroyden Broyden Nonlinear equation system (Broyden's method)
146
upolynom Poly Evaluates a polynomial
147
* RFrac Evaluates a rational fraction
148
urtpol1 RootPol1 Root of linear equation
149
urtpol2 RootPol2 Roots of quadratic equation
150
urtpol3 RootPol3 Roots of cubic equation
151
urtpol4 RootPol4 Roots of quartic equation
152
urootpol RootPol Roots of polynomial from companion matrix
153
upolutil SetRealRoots Set the imaginary part of a root to zero
154
* SortRoots Sorts the roots of a polynomial
155
utrapint TrapInt Integration by trapezoidal rule
156
ugausleg GausLeg Gauss-Legendre integration
157
* GausLeg0 Gauss-Legendre integration (lower bound=0)
158
* Convol Convolution product
159
urkf RKF45 Integration of a system of differential equations
160
ufft FFT Fast Fourier Transform
161
* IFFT Inverse Fast Fourier Transform
162
* FFT_Integer Fast Fourier Transform for integer data
163
* FFT_Integer_Cleanup Clear memory after a call to FFT_Integer
164
* CalcFrequency Direct computation of Fourier Transform
165
urandom SetRNG Select random number generator
166
* InitGen Initialize random number generator
167
* IRanGen 32-bit random integer in [-2^31 .. 2^31 - 1]
168
* IRanGen31 31-bit random integer in [0 .. 2^31 - 1]
169
* RanGen1 32-bit random real in [0,1]
170
* RanGen2 32-bit random real in [0,1)
171
* RanGen3 32-bit random real in (0,1)
172
* RanGen53 53-bit random real in [0,1)
173
uranmwc InitMWC Initialize Multiply-With-Carry generator
174
* IRanMWC 32-bit random integer from MWC generator
175
uranmt InitMT Initialize Mersenne Twister generator with a seed
176
* InitMTbyArray Initialize MT generator with an array
177
* IRanMT 32-bit random integer from MT generator
178
uranuvag InitUVAG Initialize UVAG generator with a seed
179
* InitUVAGbyString Initialize UVAG generator with a string
180
* IRanUVAG 32-bit random integer from UVAG generator
181
urangaus RanGaussStd Random number from standard normal distribution
182
* RanGauss Random number from normal distribution
183
uranmult RanMult Random vector from multinormal distrib. (correlated)
184
* RanMultIndep Random vector from multinormal distrib. (uncorrelated)
185
umcmc InitMHParams Initialize Metropolis-Hastings parameters
186
* GetMHParams Returns Metropolis-Hastings parameters
187
* Hastings Simulation of a p.d.f. by Metropolis-Hastings
188
usimann InitSAParams Initialize Simulated Annealing parameters
189
* SA_CreateLogFile Initialize log file for Simulated Annealing
190
* SimAnn Minimization of a function of several var. by Simulated Annealing
191
ugenalg InitGAParams Initialize Genetic Algorithm parameters
192
* GA_CreateLogFile Initialize log file for Genetic Algorithm
193
* GenAlg Minimization of a function of several var. by Genetic Algorithm
194
umeansd Mean Sample mean
195
* StDev Standard deviation estimated from sample
196
* StDevP Standard deviation of population
197
ucorrel Correl Correlation coefficient
198
umedian Median Sample median
199
uskew Skewness Sample skewness
200
* Kurtosis Sample kurtosis
201
uqsort QSort Quick sort (ascending order)
202
* DQSort Quick sort (descending order)
203
uinterv Interval Determines an interval for a set of values
204
ustudind StudIndep Student t-test for independent samples
205
ustdpair StudPaired Student t-test for paired samples
206
uanova1 AnOVa1 One-way analysis of variance
207
uanova2 AnOVa2 Two-way analysis of variance
208
usnedeco Snedecor Comparison of two variances
209
ubartlet Bartlett Comparison of several variances
210
ukhi2 Khi2_Conform Khi-2 test for conformity
211
* Khi2_Indep Khi-2 test for independence
212
uwoolf Woolf_Conform Woolf's test for conformity
213
* Woolf_Indep Woolf's test for independence
214
unonpar Mann_Whitney Mann-Whitney test
215
* Wilcoxon Wilcoxon test
216
* Kruskal_Wallis Kruskal-Wallis test
217
udistrib DimStatClassVector Allocates an array of statistical classes
218
* DelStatClassVector Deallocates an array of statistical classes
219
* Distrib Distributes an array into statistical classes
220
ulinfit LinFit Linear regression
221
* WLinFit Weighted linear regression
222
upolfit PolFit Polynomial regression
223
* WPolFit Weighted polynomial regression
224
umulfit MulFit Multiple regression (Gauss-Jordan method)
225
* WMulFit Weighted multiple regression (Gauss-Jordan method)
226
usvdfit SVDFit Multiple regression (SVD method)
227
* WSVDFit Weighted multiple regression (SVD method)
228
unlfit SetOptAlgo Selects optimization algorithm for nonlinear regression
229
* SetMaxParam Sets the maximal number of regression parameters
230
* SetParamBounds Sets the bounds on a regression parameter
231
* SetMCFile Set file for saving MCMC simulations
232
* NLFit Nonlinear regression
233
* WNLFit Weighted nonlinear regression
234
* SimFit Simulation of unweighted nonlinear regression by MCMC
235
* WSimFit Simulation of weighted nonlinear regression by MCMC
236
uregtest RegTest Test of unweighted regression
237
* WRegTest Test of weighted regression
238
upca VecMean Computes mean vector }
239
* VecSD Computes vector of standard deviations }
240
* MatVarCov Computes variance-covariance matrix }
241
* MatCorrel Computes correlation matrix }
242
* PCA Principal component analysis of correlation matrix }
243
* ScaleVar Scales a set of variables }
244
* PrinFac Computes principal factors }
245
ustrings LTrim Remove leading blanks
246
* RTrim Remove trailing blanks
247
* Trim Remove leading and trailing blanks
248
* StrChar Generate string by repeating a character
249
* RFill Complete string with trailing blanks
250
* LFill Complete string with leading blanks
251
* CFill Center string
252
* Replace Replace a character
253
* Extract Extract field from string
254
* Parse Parse string into several fields
255
* SetFormat Set numeric format
256
* FloatStr Convert real number to string
257
* IntStr Convert integer to string
258
* CompStr Convert complex number to string
259
uplot InitGraphics Initializes the graphic
260
* SetWindow Sets the graphic window
261
* AutoScale Automatic scale determination
262
* SetOxScale Sets the scale on the Ox axis
263
* SetOyScale Sets the scale on the Oy axis
264
* SetGraphTitle Sets the graph title
265
* SetOxTitle Sets the title for the Ox axis
266
* SetOyTitle Sets the title for the Oy axis
267
* SetTitleFont Sets the font for the main graph title
268
* SetOxFont Sets the font for the Ox axis
269
* SetOyFont Sets the font for the Oy axis
270
* SetLgdFont Sets the font for the legends
271
* PlotOxAxis Plots the Ox axis
272
* PlotOyAxis Plots the Oy axis
273
* WriteGraphTitle Writes title of graph
274
* PlotGrid Plots a grid on the graph
275
* SetClipping Limits the graphic to the current viewport
276
* SetMaxCurv Sets maximum number of curves
277
* SetPointParam Sets point parameters
278
* SetLineParam Sets line parameters
279
* SetCurvLegend Sets curve legend
280
* SetCurvStep Sets curve step
281
* PlotPoint Plots a point
282
* PlotCurve Plots a curve
283
* PlotCurveWithErrorBars Plots a curve with error bars
284
* PlotFunc Plots a function
285
* WriteLegend Writes the legends for the plotted curves
286
* ConRec Contour plot
287
* Xpixel Converts user abscissa X to screen coordinate
288
* Ypixel Converts user ordinate Y to screen coordinate
289
* Xuser Converts screen coordinate X to user abscissa
290
* Yuser Converts screen coordinate Y to user ordinate
291
* LeaveGraphics Quits the graphic mode