clValue.ThresholdGT_LT Method

function ThresholdGT_LT(const Vec: TOpenCLValue; GTLevel: Double; GTValue: Double; LTLevel: Double; LTValue: Double): TOpenCLValue;

Threshold greater than and less than operation.

#NameTypeDescription
1VecTOpenCLValue
2GTLevelDoublescalar
3GTValueDoublescalar
4LTLevelDoublescalar
5LTValueDoublescalar

Returns: TOpenCLValue

Remarks:

Perform operation on Vec value. The LTValue parameter is an lower bound for threshold operation. The GTValue parameter is an upper bound for threshold operation. Values less than LTLevel will be replaced with LTValue. Value bigger than GTLevel will be replaced with GTValue. Operation is available only for none Complex values.

Examples
var a,b: clValue;
begin
    b.Copy(3);
    a.ThresholdGT_LT(b, 2.3,3.4,1,0.5); // a = [3.4]
end;
See Also: clValue.ThresholdLT, clValue.ThresholdGT