Vector.Erf Method

Overload List

#SignatureDescription
1TMtxVec ErfError function of self (in-place).
└ indexed: TMtxVec Erf(Int32 Index, Int32 Len)
2TMtxVec Erf(TMtxVec Src)Error function of Src; result stored in self.
└ indexed: TMtxVec Erf(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len)

Overload 1: TMtxVec Erf

Error function of self (in-place).

Result: stored in self (calling object), returns self for chaining

Examples
Vector a = new Vector();
a.SetIt(new double[] { 0.0, 0.5, 1.0, 2.0 });
a.Erf();
Vector expected = new Vector();
expected.SetIt(new double[] { 0.0, 0.520499877813047, 0.842700792949715, 0.995322265018953 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
    throw new Exception("Vector.Erf: mismatch");

Indexed: TMtxVec Erf(Int32 Index, Int32 Len)

Error function on self elements [Index..Index+Len-1] in-place.

#NameTypeDescription
1IndexInt32start index
2LenInt32element count

Result: stored in self (calling object), returns self for chaining

Overload 2: TMtxVec Erf(TMtxVec Src)

Error function of Src; result stored in self.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx

Result: stored in self (calling object), returns self for chaining

Examples
Vector a = new Vector();
Vector x = new Vector();
x.SetIt(new double[] { 0.0, 0.5, 1.0, 2.0 });
a.Erf(x);
Vector expected = new Vector();
expected.SetIt(new double[] { 0.0, 0.520499877813047, 0.842700792949715, 0.995322265018953 });
if (!a.IsEqual(expected, 1e-10, TCompare.cmpAbsolute))
    throw new Exception("Vector.Erf: mismatch");

Indexed: TMtxVec Erf(TMtxVec Src, Int32 SrcIndex, Int32 Index, Int32 Len)

Error function of Src elements [SrcIndex..SrcIndex+Len-1] stored in self elements [Index..Index+Len-1].

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2SrcIndexInt32source start index
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object), returns self for chaining