Matrix.Skewness Method

function Skewness(AMean: Double; AStdDev: Double): Double;

Skewness (third central momentum).

#NameTypeDescription
1AMeanDoublepre-computed mean
2AStdDevDoubleoutput std deviation

Returns: Double

Remarks:

Calculate the calling object skewness by using mean value AMean and standard deviation AStdDev. Skewness is the third central moment, divided by third power of standard deviation:

Skewness=1σ3k=0Length1(V[k]V)3,where V=mean value\text{Skewness}=\frac{1}{\sigma ^3} \sum _{k=0} ^{\text{Length}-1}\left( V[k] -\langle V\rangle \right)^3 ,\quad \text{where } \langle V \rangle = \text{mean value}
Examples
var a: Matrix;
    c,d: double;
begin
    a.SetIt(1,4,False,[1,2,3,4]);
    d := a.Mean;
    c := a.Skewness(d, a.StdDev(d)); //or

    d := Mean(a);
    c := Skewness(a, d, StdDev(a, d));
end;
See Also: Matrix.Kurtosis, Matrix.Mean, Matrix.StdDev

Indexed: function Skewness(AMean: Double; AStdDev: Double; Index: Integer; Len: Integer): Double;

Calculate the skewness for elements [Index]..[Index+Len-1].

#NameTypeDescription
1AMeanDoublepre-computed mean
2AStdDevDoubleoutput std deviation
3IndexIntegerstart index
4LenIntegerelement count

Returns: Double

Remarks:

An exception is raised if Matrix.ConditionCheck is True and array borders are overrun. The AMean and AStdDev parameters must be computed from the same elements from which the Skewness is to be computed.