TSparseMtx.ErfcInv Method

Overload List

#SignatureDescription
1function ErfcInv: TMtxVec;Calculates the inverse complementary error function for all calling object elements in-place.
└ indexed: function ErfcInv(Index: Integer; Len: Integer): TMtxVec;
2function ErfcInv(const Src: TMtxVec): TMtxVec;Calculates the inverse complementary error function for all Src object values.
└ indexed: function ErfcInv(const Src: TMtxVec; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function ErfcInv: TMtxVec;

Calculates the inverse complementary error function for all calling object elements in-place.

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

Returns: x such that Erfc(x) equals the element value, for elements in 0..2.

Remarks:

Takes the complementary probability, which keeps both tails exact: y/2 is a power-of-two scaling and 1-y/2 is exact by Sterbenz. Prefer this over ErfInv(1-y), which caps the small-y tail at an absolute 5.55E-17.

Indexed: function ErfcInv(Index: Integer; Len: Integer): TMtxVec;

Calculates the inverse complementary error function for calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

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

Remarks:

An exception is raised if array borders are overrun or underrun.

Overload 2: function ErfcInv(const Src: TMtxVec): TMtxVec;

Calculates the inverse complementary error function for all Src object values.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx

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

Remarks:

Stores the result in calling object. Size and TMtxVec.Complex properties of calling object are adjusted automatically.

Indexed: function ErfcInv(const Src: TMtxVec; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Calculates the inverse complementary error function for Src object elements [SrcIndex]..[SrcIndex+Len-1].

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

Stores the result in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.