TSparseMtx.MeanAndStdDev Method

procedure MeanAndStdDev(var aMean: Double; var AStdDev: Double);

Returns the standard deviation of all calling object elements.

#NameTypeDescription
1aMeanDouble
2AStdDevDoubleoutput 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 TMtxVec.Complex property is true.

Indexed: procedure MeanAndStdDev(var aMean: Double; var AStdDev: Double; Index: Integer; Len: Integer);

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

#NameTypeDescription
1aMeanDouble
2AStdDevDoubleoutput std deviation
3IndexIntegerstart index
4LenIntegerelement 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 TMtxVec.Complex property is true or if array borders are overrun/underrun.