You are here: Symbol Reference > MtxExprInt Namespace > Classes > VectorInt Record > public > ThreshBottom Method > VectorInt.ThreshBottom Method (integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
VectorInt.ThreshBottom Method (integer)

Threshold bottom operation.

Pascal
function ThreshBottom(const Value: integer): TMtxVecInt; 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: TVecInt; begin CreateIt(a); try a.SetIt([2,0,3,4]); a.ThreshBottom(1); // a = [2,1,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!