You are here: Symbol Reference > AbstractMtxVec Namespace > Classes > TMtxVec Class > public > ThreshTop Method > TMtxVec.ThreshTop Method (double)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVec.ThreshTop Method (double)

Threshold top operation.

Pascal
function ThreshTop(const Value: double): TMtxVec; 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: TVec; begin CreateIt(a); try a.SetIt(True,[2,0.1,3,4]); a.Threshtop(0.2); // a = [0.2,0.1,0.2,0.2] 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!