clMatrix.ThreshBottom Method

Overload List

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

Overload 1: TOpenCLMtxVec ThreshBottom(TOpenCLMtxVec Src, Double Value)

Perform threshold operation on all Src object values.

#NameTypeDescription
1SrcTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueDoublescalar

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

Remarks:

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

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

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

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueDoublescalar
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.clMatrix.Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.

Overload 2: TOpenCLMtxVec ThreshBottom(Double Value)

Threshold bottom operation.

#NameTypeDescription
1ValueDoublescalar

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
clMatrix a;
a.CopyFromArray(2,2,TSingleArray.Create(2,0.1,3,4));
a.ThreshBottom(0.2); // a = new double[] {2,0.2,3,4}
See Also: clMatrix.ThreshTop

Indexed: TOpenCLMtxVec ThreshBottom(Double Value, Int32 Index, Int32 Len)

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

#NameTypeDescription
1ValueDoublescalar
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.