Elementary.SoftThreshold Method

Reduces the magnitude of a number towards zero.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static double SoftThreshold(
	double value,
	double threshold
)

Parameters

value  Double
The value to reduce.
threshold  Double

Return Value

Double
value reduced in magnitude by threshold, or zero if the magnitude of value is less than threshold.

See Also