Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec Erfc | Complementary error functon of values. |
| └ indexed: TMtxVec Erfc(Int32 Index, Int32 Len) | ||
| 2 | TMtxVec Erfc(TMtxVec Src) | Calculates the complementary error function value for all Src object values. |
| └ indexed: TMtxVec Erfc(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len) |
Overload 1: TMtxVec Erfc
Complementary error functon of values.
Result: stored in self (calling object), returns self for chaining
Calculates the complementary error function value for all object values in-place.
Vector a = new Vector();
a.SetIt(new double[] { 0.0, 0.5, 1.0, 2.0 });
a.Erfc();
Vector expected = new Vector();
expected.SetIt(new double[] { 1.0, 0.479500122186953, 0.157299207050285, 0.00467773498104727 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
throw new Exception("Vector.Erfc: mismatch");
Indexed: TMtxVec Erfc(Int32 Index, Int32 Len)
Calculates the complementary error function value for calling object elements [Index]..[Index+Len-1] in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Int32 | start index |
| 2 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.
Overload 2: TMtxVec Erfc(TMtxVec Src)
Calculates the complementary error function value for all Src object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | source TVec or TMtx |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object. Size and Dew.Math.TMtxVec.Complex properties of calling object are adjusted automatically.
Vector a = new Vector();
Vector x = new Vector();
x.SetIt(new double[] { 0.0, 0.5, 1.0, 2.0 });
a.Erfc(x);
Vector expected = new Vector();
expected.SetIt(new double[] { 1.0, 0.479500122186953, 0.157299207050285, 0.00467773498104727 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
throw new Exception("Vector.Erfc: mismatch");
Indexed: TMtxVec Erfc(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len)
Calculates the complementary error function value for Src object elements [SrcIndex]..[SrcIndex+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | source TVec or TMtx |
| 2 | SrcIndex | Int32 | source start index |
| 3 | Index | Int32 | start index |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
Stores the result in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.