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

Threshold greater than operation.

Pascal
function ThresholdGT(const GTLevel: double; const GTValue: double): TOpenCLMtxVec; overload;

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.

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