You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > ThresholdLT Method > TOpenCLMtxVec.ThresholdLT Method (double, double)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.ThresholdLT Method (double, double)

Threshold less than operation.

Pascal
function ThresholdLT(const LTLevel: double; const LTValue: double): TOpenCLMtxVec; overload;

Perform operation on all calling object values. The LTValue parameter is an 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.

var a: TOpenCLVector; begin CreateIt(a); try a.CopyCplxFromArray(TSingleArray.Create(2,0.1,3,4)); a.ThresholdLT(2.3,1.5); // a = [1.5,1.5,3,4] finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!