TSpectrumStats.StdDev Property

TVecList StdDev { get; set; }

If CalcStdDev is True and frequency spectrum has been averaged, this property contains the standard deviation of Amplt and Phase vectors.

Returns: TVecList

Remarks:

Standard deviation is statistically meaningfull only if linear averaging is used. For description of vectors see TVec.Caption property. The vector count should not be altered. The first index holds the stddev of amplitude and the second index the stddev of the phase.

Examples
Matrix a = new Matrix();
a.SetIt(2, 2, false, new double[] { 1.0, 2.0, 3.0, 4.0 });
double result = a.StdDev();
if (Math.Abs(result - 1.29099444873581) > 1e-10)
    throw new Exception("Matrix.StdDev: expected 1.29099444873581, got " + result);
Matrix a;
double c;
double aMean;
a.SetIt(2,2,false,new double[] {1,2,3,4});
aMean = a.Mean;
c = a.StdDev(aMean); //if both Mean and StdDev are required this is faster
// c := a.StdDev; //this is an alternative.