TOpenCLValue ThreshBottom(TOpenCLValue Src, Double Value)
Threshold bottom operation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLValue | source TOpenCLValue |
| 2 | Value | Double | scalar |
Returns: TOpenCLValue
Remarks:
Perform threshold operation on Src. The Value parameter is a lower bound for the threshold operation. Src value smaller than Value will be replaced with Value.
Examples
using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples
{
void Example()
{
TOpenCLValue a, b;
clMtxVec.CreateIt(out a, out b);
try
{
b.Copy(0.1);
a.ThreshBottom(b, 0.2); // a = [0.2]
}
finally
{
clMtxVec.FreeIt(ref a, ref b);
}
}
}
See Also: TOpenCLValue.ThreshTop