clValue.ThresholdGT Method

Overload List

#SignatureDescription
1TOpenCLValue ThresholdGT(TOpenCLValue Vec, Double GTLevel, TCplx GTValue)Perform "greater than" threshold operation vor complex number stored in Vec object.
2TOpenCLValue ThresholdGT(TOpenCLValue Vec, Double GTLevel, Double GTValue)Threshold greater than operation.

Overload 1: TOpenCLValue ThresholdGT(TOpenCLValue Vec, Double GTLevel, TCplx GTValue)

Perform "greater than" threshold operation vor complex number stored in Vec object.

#NameTypeDescription
1VecTOpenCLValuesource TOpenCLValue
2GTLevelDoublescalar
3GTValueTCplxscalar

Returns: TOpenCLValue

Remarks:

Store the result in the calling object. FloatPrecision and Dew.Math.clValue.Complex properties of the calling object are adjusted automatically. If Vec object value is not Complex, an exception will be raised.

Overload 2: TOpenCLValue ThresholdGT(TOpenCLValue Vec, Double GTLevel, Double GTValue)

Threshold greater than operation.

#NameTypeDescription
1VecTOpenCLValuesource TOpenCLValue
2GTLevelDoublescalar
3GTValueDoublescalar

Returns: TOpenCLValue

Remarks:

Perform operation on Vec object value. The GTValue parameter is an upper bound for threshold operation. Value bigger than LTLevel will be replaced with GTValue. For a complex number the comparison is applied with the norm of the complex value.

Examples
clValue a;
b.Copy(2);
a.ThresholdGT(b, 1.3,1.5); // a = new double[] {1.5}
See Also: clValue.ThresholdLT, clValue.ThresholdGT_LT