TSparseMtx.ThresholdLT Method

Overload List

#SignatureDescription
1function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: TCplx): TMtxVec;Perform "less than" threshold operation for complex numbers on all Vec object values.
└ indexed: function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
2function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: Double): TMtxVec;Perform "less than" threshold operation on all Vec object values.
└ indexed: function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: Double; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
3function ThresholdLT(const LTLevel: Double; const LTValue: TCplx): TMtxVec;Perfrom "less than" threshold operation for complex numbers.
└ indexed: function ThresholdLT(const LTLevel: Double; const LTValue: TCplx; Index: Integer; Len: Integer): TMtxVec;
4function ThresholdLT(const LTLevel: Double; const LTValue: Double): TMtxVec;Threshold less than operation.
└ indexed: function ThresholdLT(const LTLevel: Double; const LTValue: Double; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: TCplx): TMtxVec;

Perform "less than" threshold operation for complex numbers on all Vec object values.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2LTLevelDoublescalar
3LTValueTCplxscalar

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

Remarks:

Store the results in calling object. Size and TMtxVec.Complex properties of the calling object are adjusted automatically. If Vec object contains none Complex values, an exception will be raised.

Indexed: function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Perform "less than" threshold operation for complex numbers on Vec elements from range [VecIndex]..[VecIndex+Len-1].

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2LTLevelDoublescalar
3LTValueTCplxscalar
4VecIndexInteger
5IndexIntegerstart index
6LenIntegerelement count

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

Remarks:

Store the results in the calling object elements [Index]..[Index+Len-1]. Size and TMtxVec.Complex properties of the calling object must be set explicitly. An exception is raised if TMtxVecBase.ConditionCheck is true and array borders are overrun/underrun. If Vec object or calling object contain none Complex values, an exception will be raised.

Overload 2: function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: Double): TMtxVec;

Perform "less than" threshold operation on all Vec object values.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2LTLevelDoublescalar
3LTValueDoublescalar

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

Remarks:

Store the results in calling object. Size and TMtxVec.Complex properties of the calling object are adjusted automatically.

Indexed: function ThresholdLT(const Vec: TMtxVec; const LTLevel: Double; const LTValue: Double; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Perform "less than" threshold operation on Vec elements from range [VecIndex]..[VecIndex+Len-1].

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2LTLevelDoublescalar
3LTValueDoublescalar
4VecIndexInteger
5IndexIntegerstart index
6LenIntegerelement count

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

Remarks:

Store the results in the calling object elements [Index]..[Index+Len-1]. Size and TMtxVec.Complex properties of the calling object must be set explicitly. An exception is raised if TMtxVecBase.ConditionCheck is true and array borders are overrun/underrun. An exception will be raised if Vec.Complex and Complex of the calling object are not equal.

Overload 3: function ThresholdLT(const LTLevel: Double; const LTValue: TCplx): TMtxVec;

Perfrom "less than" threshold operation for complex numbers.

#NameTypeDescription
1LTLevelDoublescalar
2LTValueTCplxscalar

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

Remarks:

If the calling object contains none Complex values, an exception will be raised.

Indexed: function ThresholdLT(const LTLevel: Double; const LTValue: TCplx; Index: Integer; Len: Integer): TMtxVec;

Perfrom "less than" threshold operation for complex numbers on the calling object values in range [Index]..[Index+Len-1].

#NameTypeDescription
1LTLevelDoublescalar
2LTValueTCplxscalar
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

An exception is raised if array borders are overrun/underrun. If the calling object contains none Complex values, an exception will be raised.

Overload 4: function ThresholdLT(const LTLevel: Double; const LTValue: Double): TMtxVec;

Threshold less than operation.

#NameTypeDescription
1LTLevelDoublescalar
2LTValueDoublescalar

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

Remarks:

Perform operation on all calling object values. The LTValue parameter is a lower bound for threshold operation. All values less than LTLevel will be replaced with LTValue. For complex number comparation is applied with norm of complex value.

Examples
var a: Matrix;
begin
    a.SetIt(1,2,True,[2,0.1,3,4]);
    a.ThresholdLT(2.3,1.5); // a = [1.5,1.5,3,4]
end;

Indexed: function ThresholdLT(const LTLevel: Double; const LTValue: Double; Index: Integer; Len: Integer): TMtxVec;

Perfrom "less than" threshold operation on the calling object values in range [Index]..[Index+Len-1].

#NameTypeDescription
1LTLevelDoublescalar
2LTValueDoublescalar
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

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