Overload List
| # | Signature | Description |
|---|---|---|
| 1 | double StdDev(); | Standard deviation. |
| 2 | double StdDev(int Index, int Len); | Returns the standard deviation of calling object elements [Index]..[Index+Len-1]. |
| 3 | double StdDev(double ASum, double aSumSqr); | Returns the standard deviation of all calling object elements. |
| 4 | double StdDev(double ASum, double aSumSqr, int Index, int Len); | Returns the standard deviation of calling object elements [Index]..[Index+Len-1]. |
Overload 1: double StdDev();
Standard deviation.
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.
#include "clMtxVec.h"
#include "Units.clMtxVec.h"
using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::ClMtxVec;
void Example()
{
TOpenCLVector* a;
CreateIt(a);
a->CopyFromArray(DewArray<double>{-1,2,-3,4});
double c = a->StdDev();
FreeIt(a);
}
Overload 2: double StdDev(int Index, int Len);
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | int | |
| 2 | Len | int |
An exception is raised if calling object TOpenCLBase::Complex property is true or if array borders are overrun/underrun.
Overload 3: double StdDev(double ASum, double aSumSqr);
Returns the standard deviation of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ASum | double | |
| 2 | aSumSqr | double |
The sum and the sum of squares of all calling object elements must be passed as parameters. An exception is raised if calling object TOpenCLBase::Complex property is true.
Overload 4: double StdDev(double ASum, double aSumSqr, int Index, int Len);
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ASum | double | |
| 2 | aSumSqr | double | |
| 3 | Index | int | |
| 4 | Len | int |
The sum and the sum of squares of the coresponding elements must be passed as parameters. An exception is raised if calling object TOpenCLBase::Complex property is true or if array borders are overrun/underrun.