TSparseMtx.MeanAndStdDev Method

void MeanAndStdDev(ref Double aMean, ref Double AStdDev)

Returns the standard deviation of all calling object elements.

#NameTypeDescription
1aMeanDouble (ref)output
2AStdDevDouble (ref)output std deviation

Result: stored in self (calling object)

Remarks:

The average of all calling object elements must be passed as a AMean parameter. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true.

Indexed: void MeanAndStdDev(ref Double aMean, ref Double AStdDev, Int32 Index, Int32 Len)

Returns the standard deviation of calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1aMeanDouble (ref)output
2AStdDevDouble (ref)output std deviation
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object)

Remarks:

The average of the coresponding elements must be passed as a parameter. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or if array borders are overrun/underrun.