TSparseMtx.MeanAndStdDev Method

procedure MeanAndStdDev(var aMean, aStdDev: double); overload;

Returns the standard deviation of all calling object elements.

#NameTypeDescription
1aMeandoublescalar
2aStdDevdoublescalar

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, aStdDev: double; Index, Len: integer); overload;

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

#NameTypeDescription
1aMeandoublescalar
2aStdDevdoublescalar
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.