Конкретно ДИСПР не знаю, но вот фрагмент интерфейса модуля Math, возможно что-то из этого подойдет, я с английскими названиями стат. функцие не очень .
| Код | {----------------------------------------------------------------------- Statistical functions.
Common commercial spreadsheet macro names for these statistical and financial functions are given in the comments preceding each function. -----------------------------------------------------------------------}
{ Mean: Arithmetic average of values. (AVG): SUM / N } function Mean(const Data: array of Double): Extended;
{ Sum: Sum of values. (SUM) } function Sum(const Data: array of Double): Extended register; function SumInt(const Data: array of Integer): Integer register; function SumOfSquares(const Data: array of Double): Extended; procedure SumsAndSquares(const Data: array of Double; var Sum, SumOfSquares: Extended) register;
{ MinValue: Returns the smallest signed value in the data array (MIN) } function MinValue(const Data: array of Double): Double; function MinIntValue(const Data: array of Integer): Integer;
function Min(const A, B: Integer): Integer; overload; inline; function Min(const A, B: Int64): Int64; overload; inline; function Min(const A, B: Single): Single; overload; inline; function Min(const A, B: Double): Double; overload; inline; function Min(const A, B: Extended): Extended; overload; inline;
{ MaxValue: Returns the largest signed value in the data array (MAX) } function MaxValue(const Data: array of Double): Double; function MaxIntValue(const Data: array of Integer): Integer;
function Max(const A, B: Integer): Integer; overload; inline; function Max(const A, B: Int64): Int64; overload; inline; function Max(const A, B: Single): Single; overload; inline; function Max(const A, B: Double): Double; overload; inline; function Max(const A, B: Extended): Extended; overload; inline;
{ Standard Deviation (STD): Sqrt(Variance). aka Sample Standard Deviation } function StdDev(const Data: array of Double): Extended;
{ MeanAndStdDev calculates Mean and StdDev in one call. } procedure MeanAndStdDev(const Data: array of Double; var Mean, StdDev: Extended);
{ Population Standard Deviation (STDP): Sqrt(PopnVariance). Used in some business and financial calculations. } function PopnStdDev(const Data: array of Double): Extended;
{ Variance (VARS): TotalVariance / (N-1). aka Sample Variance } function Variance(const Data: array of Double): Extended;
{ Population Variance (VAR or VARP): TotalVariance/ N } function PopnVariance(const Data: array of Double): Extended;
{ Total Variance: SUM(i=1,N)[(X(i) - Mean)**2] } function TotalVariance(const Data: array of Double): Extended;
{ Norm: The Euclidean L2-norm. Sqrt(SumOfSquares) } function Norm(const Data: array of Double): Extended;
{ MomentSkewKurtosis: Calculates the core factors of statistical analysis: the first four moments plus the coefficients of skewness and kurtosis. M1 is the Mean. M2 is the Variance. Skew reflects symmetry of distribution: M3 / (M2**(3/2)) Kurtosis reflects flatness of distribution: M4 / Sqr(M2) } procedure MomentSkewKurtosis(const Data: array of Double; var M1, M2, M3, M4, Skew, Kurtosis: Extended);
{ RandG produces random numbers with Gaussian distribution about the mean. Useful for simulating data with sampling errors. } function RandG(Mean, StdDev: Extended): Extended;
|
|