Color legend plain property method
Two power curves that meet at the middle: from a straight line at A = 0 to a plateau 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.ExponentialDoubleSeat, number 18 |
Category |
ShapingFunctionCategory.Exponential |
Name |
"Exponential Double Seat" |
Order |
null |
ParameterCount |
1 |
HasVariableOrder |
false |
For an input x from 0 to 1, the output is (2x)1 − A / 2 up to x = 0.5, and 1 − (2 − 2x)1 − A / 2 after it.
It passes (0.5, 0.5) with a slope of 1 − A and starts and ends upright. With the default A of 0.00001 it is Linear to within 0.00001. It stays within 0 to 1 and never goes back.
Properties
A →
float · From IOneParameter. How flat the middle is: the two halves are powers of 1 − A, so 0 is a straight line and values near 1 a plateau 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
ExponentialDoubleSeat() →
ExponentialDoubleSeat() · Creates the curve, with its parameters at their defaults. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.ExponentialDoubleSeat.