You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > StdDev Method > clMatrix.StdDev Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.StdDev Method ()

Standard deviation.

Pascal
function StdDev: double; overload;

Calculate the standard deviation of all calling object elements. The result is a real value. An exception is raised if calling vector Complex property is true.

var a: clMatrix; c: double; aMean: double; begin a.Size(2,2, clFloat, false); a.CopyFromArray(TDoubleArray.Create(1,2,3,4)); Caption := FloatToSTr(a.StdDev); end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!