TOpenCLValue.ThreshTop Method

function ThreshTop(const Src: TOpenCLValue; Value: Double): TOpenCLValue;

Threshold top operation.

#NameTypeDescription
1SrcTOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

Perform threshold operation Src. The Value parameter is an upper bound for threshold operation. Src value bigger than Value will be replaced with Value.

Examples
var a,b: TOpenCLValue;
begin
    CreateIt(a,b);
    try
        b.Copy(3);
        a.ThreshTop(b, 0.2); // a = [0.2]
    finally
        FreeIt(a,b);
    end;
end;
See Also: TOpenCLValue.ThreshTop