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

Threshold bottom operation.

Pascal
function ThreshBottom(const Value: double): TOpenCLMtxVec; overload;

Perform threshold operation on all calling object values. The Value parameter is a lower bound for threshold operation. All values smaller than Value will be replaced with Value.

var a: TOpenCLVector; begin CreateIt(a); try a.CopyCplxFromArray(TSingleArray.Create(2,0.1,3,4)); a.ThreshBottom(0.2); // a = [2,0.2,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!