You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clMatrix Structure > clMatrix Methods > ThreshTop Method > clMatrix.ThreshTop Method (double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clMatrix.ThreshTop Method (double)

Threshold top operation.

Syntax
C#
Visual Basic
public TOpenCLMtxVec ThreshTop(double Value);

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: clMatrix; begin a.CopyFromArray(2,2,TSingleArray.Create(2,0.1,3,4)); a.Threshtop(0.2); // a = [0.2,0.1,0.2,0.2] end;
Copyright (c) 1999-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!