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

Threshold top and bottom centered around zero.

Pascal
function ThreshAbsLT(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 smaller than Value will be replaced with Value and all values bigger than -Value will be replaced with -Value. The comparison checks if abs(Values[i]) < Value.

var a: TVec; begin CreateIt(a); try a.SetIt(False,[2,-0.1,3,4]); a.ThreshAbsLT(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!