You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > ThresholdLT Method > Matrix.ThresholdLT Method (double, double)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.ThresholdLT Method (double, double)

Threshold less than operation.

Pascal
function ThresholdLT(LTLevel: double; LTValue: double): TMtxVec; overload;

Perform operation on all calling object values. The LTValue parameter is an lower bound for threshold operation. All values less than LTLevel will be replaced with LTValue. For complex number comparation is applied with norm of complex value.

var a: Matrix; begin a.SetIt(1,2,True,[2,0.1,3,4]); a.ThresholdLT(2.3,1.5); // a = [1.5,1.5,3,4] end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!