MatrixInt.ThreshBottom Method

Overload List

#SignatureDescription
1TMtxVecInt ThreshBottom(TMtxVecInt Src, Int32 Value)Perform threshold operation on all Src object values.
└ indexed: TMtxVecInt ThreshBottom(TMtxVecInt Vec, Int32 Value, Int32 VecIndex, Int32 Index, Int32 Len)
2TMtxVecInt ThreshBottom(Int32 Value)Threshold bottom operation.
└ indexed: TMtxVecInt ThreshBottom(Int32 Value, Int32 Index, Int32 Len)

Overload 1: TMtxVecInt ThreshBottom(TMtxVecInt Src, Int32 Value)

Perform threshold operation on all Src object values.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2ValueInt32

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling object. Size and Dew.Math.VectorInt.IntPrecision properties of the calling object are adjusted automatically.

Indexed: TMtxVecInt ThreshBottom(TMtxVecInt Vec, Int32 Value, Int32 VecIndex, Int32 Index, Int32 Len)

Perform a threshold operation on Vec elements [VecIndex]..[VecIndex+Len-1].

#NameTypeDescription
1VecTMtxVecIntsource TVecInt or TMtxInt
2ValueInt32
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in the calling object elements [Index]..[Index+Len-1]. Size and Dew.Math.VectorInt.IntPrecision properties of the calling object must be set explicitly. An exception is raised if Dew.Math.TMtxVecBase.ConditionCheck is true and array borders are overrun/underrun.

Overload 2: TMtxVecInt ThreshBottom(Int32 Value)

Threshold bottom operation.

#NameTypeDescription
1ValueInt32

Result: stored in self (calling object), returns self for chaining

Remarks:

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.

Examples
using Dew.Math;
using Dew.Math.Units;

namespace Dew.Examples
{
    void Example()
    {
        TMtxInt a;
        MtxVecInt.CreateIt(out a);
        try
        {
            a.SetIt(2,2, new int[] {2, 0, 3, 4});
            a.ThreshBottom(1); // a = [2,1,3,4]
        }
        finally
        {
            MtxVecInt.FreeIt(ref a);
        }
    }
}
See Also: MatrixInt.ThreshTop

Indexed: TMtxVecInt ThreshBottom(Int32 Value, Int32 Index, Int32 Len)

Perform the threshold operation on calling object values [Index]..[Index+Len-1].

#NameTypeDescription
1ValueInt32
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if array borders are overrun/underrun.