Matrix.ThresholdGT Method

Overload List

#SignatureDescription
1function ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: TCplx): TMtxVec;Perform "greater than" threshold operation for complex numbers on all Vec object values and store the results in calling object.
└ indexed: function ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
2function ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: Double): TMtxVec;Perform "greater than" threshold operation on all Vec object values and store the results in calling object.
└ indexed: function ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: Double; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
3function ThresholdGT(GTLevel: Double; GTValue: TCplx): TMtxVec;Perfrom "greater than" threshold operation for complex numbers.
└ indexed: function ThresholdGT(GTLevel: Double; GTValue: TCplx; Index: Integer; Len: Integer): TMtxVec;
4function ThresholdGT(GTLevel: Double; GTValue: Double): TMtxVec;Threshold greater than operation.
└ indexed: function ThresholdGT(GTLevel: Double; GTValue: Double; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: TCplx): TMtxVec;

Perform "greater than" threshold operation for complex numbers on all Vec object values and store the results in calling object.

#NameTypeDescription
1VecTMtxVec
2GTLevelDoublescalar
3GTValueTCplxscalar

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

Remarks:

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

Indexed: function ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

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

#NameTypeDescription
1VecTMtxVec
2GTLevelDoublescalar
3GTValueTCplxscalar
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 Matrix.Complex properties of the calling object must be set explicitly. An exception is raised if Matrix.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 ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: Double): TMtxVec;

Perform "greater than" threshold operation on all Vec object values and store the results in calling object.

#NameTypeDescription
1VecTMtxVec
2GTLevelDoublescalar
3GTValueDoublescalar

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

Remarks:

Size and Matrix.Complex properties of the calling object are adjusted automatically.

Indexed: function ThresholdGT(const Vec: TMtxVec; GTLevel: Double; GTValue: Double; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Perform "greater than" threshold operation on Vec elements from range [VecIndex]..[VecIndex+Len-1] and store the results in the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTMtxVec
2GTLevelDoublescalar
3GTValueDoublescalar
4VecIndexInteger
5IndexIntegerstart index
6LenIntegerelement count

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

Remarks:

Size and Matrix.Complex properties of the calling object must be set explicitly. An exception is raised if Matrix.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 ThresholdGT(GTLevel: Double; GTValue: TCplx): TMtxVec;

Perfrom "greater than" threshold operation for complex numbers.

#NameTypeDescription
1GTLevelDoublescalar
2GTValueTCplxscalar

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 ThresholdGT(GTLevel: Double; GTValue: TCplx; Index: Integer; Len: Integer): TMtxVec;

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

#NameTypeDescription
1GTLevelDoublescalar
2GTValueTCplxscalar
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 ThresholdGT(GTLevel: Double; GTValue: Double): TMtxVec;

Threshold greater than operation.

#NameTypeDescription
1GTLevelDoublescalar
2GTValueDoublescalar

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

Remarks:

Perform operation on all calling object values. The GTValue parameter is an upper bound for threshold operation. All values bigger than LTLevel will be replaced with GTValue. 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.ThresholdGT(2.3,3.4); // a = [2,0.1,3.4,3.4]
end;
See Also: Matrix.ThresholdLT, Matrix.ThresholdGT_LT

Indexed: function ThresholdGT(GTLevel: Double; GTValue: Double; Index: Integer; Len: Integer): TMtxVec;

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

#NameTypeDescription
1GTLevelDoublescalar
2GTValueDoublescalar
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.