Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function ThresholdLT(const Vec: TOpenCLValue; LTLevel: Double; LTValue: TCplx): TOpenCLValue; | Perform "less than" threshold operation for complex value in Vec. |
| 2 | function ThresholdLT(const Vec: TOpenCLValue; LTLevel: Double; LTValue: Double): TOpenCLValue; | Threshold less than operation. |
Overload 1: function ThresholdLT(const Vec: TOpenCLValue; LTLevel: Double; LTValue: TCplx): TOpenCLValue;
Perform "less than" threshold operation for complex value in Vec.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLValue | |
| 2 | LTLevel | Double | scalar |
| 3 | LTValue | TCplx | scalar |
Returns: TOpenCLValue
Remarks:
Stores the result in the calling object. FloatPrecision and TOpenCLBase.Complex properties of the calling object are adjusted automatically. If Vec ovalue is not complex, an exception will be raised.
Overload 2: function ThresholdLT(const Vec: TOpenCLValue; LTLevel: Double; LTValue: Double): TOpenCLValue;
Threshold less than operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TOpenCLValue | |
| 2 | LTLevel | Double | scalar |
| 3 | LTValue | Double | scalar |
Returns: TOpenCLValue
Remarks:
Perform operation on Vec. The LTValue parameter is an lower bound for threshold operation. Vec value less than LTLevel will be replaced with LTValue. For a complex number the comparison is applied with the norm of the complex value.
Examples
var a: clValue;
begin
b.Copy(2));
a.ThresholdLT(b, 2.3,1.5); // a = [1.5]
end;