Reduces the magnitude of a number towards zero.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double SoftThreshold(
double value,
double threshold
)
Public Shared Function SoftThreshold (
value As Double,
threshold As Double
) As Double
public:
static double SoftThreshold(
double value,
double threshold
)
static member SoftThreshold :
value : float *
threshold : float -> float
Parameters
- value
- Type: SystemDouble
The value to reduce. - threshold
- Type: SystemDouble
Return Value
Type:
Doublevalue reduced in magnitude
by
threshold, or zero if the magnitude of
value is less than
threshold.
Reference