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

Threshold top operation.

Pascal
function ThreshTop(const Value: integer): TMtxVecInt; overload;

Perform threshold operation on all calling object values. The Value parameter is an upper bound for threshold operation. All values bigger than Value will be replaced with Value.

var a: TMtxInt; begin CreateIt(a); try a.SetIt(2,2,[2,0,3,4]); a.Threshtop(1); // a = [1,0,1,1] 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!