clVector::RMS Method

double RMS() const;

Standard deviation.

Remarks:

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

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clVector a;
    double c;
    double aMean;

    a.CopyFromArray(DewArray<double>{1, 2, 3, 4});
    c = a.RMS();
}
See Also: clVector::Mean
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler