Color legend plain property method
The logistic S-curve, scaled to run from 0 to 1: from a straight line at A = 0 to a step at 0.5 as A nears 1.
A class in the category ShapingFunctionCategory.Exponential. It derives from BaseShapingFunction and has its members too: CalculateOutput gives the curve. The parameters page shows it in context, with what its parameters do.
Names are colored by what they are: a property or a method; values and fields keep the plain color.
The curve
| Property | Value |
|---|---|
Id |
ShapingFunctionId.LogisticSigmoid, number 22 |
Category |
ShapingFunctionCategory.Exponential |
Name |
"Logistic Sigmoid" |
Order |
null |
ParameterCount |
1 |
HasVariableOrder |
false |
For an input x from 0 to 1, the output is 1 / (1 + e−2k(x − 0.5)) with k = 1 / (1 − A) − 1, then shifted and scaled so it is exactly 0 at x = 0 and 1 at x = 1. It is computed in double precision, which keeps it smooth for small A.
It passes (0.5, 0.5), steepest there. With the default A of 0.00001 it is Linear to within 0.000001. It stays within 0 to 1 and never goes back.
Properties
A →
float · From IOneParameter. How steep the S is: the steepness is 1 / (1 − A) − 1, so 0 is a straight line and values near 1 a step at 0.5. Clamped to 0.00001 to 0.99999 when set, so the curve never divides by 0; 0.00001 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.
Methods
LogisticSigmoid() →
LogisticSigmoid() · Creates the curve, with its parameters at their defaults. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.LogisticSigmoid.