Overload List
| # | Signature | Description |
|---|---|---|
| 1 | Double StdDev | Standard deviation. |
| └ indexed: Double StdDev(Int32 Index, Int32 Len) | ||
| 2 | TCplx StdDev(TCplx AMean) | Returns the standard deviation of all calling object complex elements. |
| └ indexed: TCplx StdDev(TCplx AMean, Int32 Index, Int32 Len) | ||
| 3 | Double StdDev(Double AMean) | Returns the standard deviation of all calling object elements. |
| └ indexed: Double StdDev(Double AMean, Int32 Index, Int32 Len) |
Overload 1: Double StdDev
Standard deviation.
Returns: Double
Calculate the standard deviation of all calling object elements. The result is a real value. An exception is raised if calling vector Dew.Math.TMtxVec.Complex property is true.
Vector a = new Vector();
a.SetIt(new double[] { 1.0, 2.0, 3.0, 4.0 });
double result = a.StdDev();
if (Math.Abs(result - 1.29099444873581) > 1e-10)
throw new Exception("Vector.StdDev: expected 1.29099444873581, got " + result);
Vector a;
double c;
double aMean;
a.SetIt(false,new double[] {1,2,3,4});
aMean = a.Mean;
c = a.StdDev(aMean); //if both Mean and StdDev are required this is faster
// c := a.StdDev; //this is an alternative.
Indexed: Double StdDev(Int32 Index, Int32 Len)
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | Len | Int32 | element count |
Returns: Double
An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or if array borders are overrun/underrun.
Overload 2: TCplx StdDev(TCplx AMean)
Returns the standard deviation of all calling object complex elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | TCplx | pre-computed mean |
Returns: TCplx (complex)
The average of all calling object elements must be passed as a AMean parameter. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is false.
Indexed: TCplx StdDev(TCplx AMean, Int32 Index, Int32 Len)
Returns the standard deviation of calling object complex elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | TCplx | pre-computed mean |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Returns: TCplx (complex)
The average of all calling object elements must be passed as a AMean parameter. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is false or if array borders are overrun/underrun.
Overload 3: Double StdDev(Double AMean)
Returns the standard deviation of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | Double | pre-computed mean |
Returns: Double
The average of all calling object elements must be passed as a AMean parameter. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true.
Indexed: Double StdDev(Double AMean, Int32 Index, Int32 Len)
Returns the standard deviation of calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | Double | pre-computed mean |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Returns: Double
The average of the coresponding elements must be passed as a parameter. An exception is raised if calling object Dew.Math.TMtxVec.Complex property is true or if array borders are overrun/underrun.