Docs / Shaping functions

Glossary: EllipticalDoubleSigmoid

The curve of EllipticalDoubleSigmoid, its parameters and its constructor.

Color legend plain property method

Two quarter ellipses that meet upright at (A, B): an S that stands vertical at any point.

A class in the category ShapingFunctionCategory.Elliptical. 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

The curve of EllipticalDoubleSigmoid for several settings of its parameters
(A, B) = (0.3, 0.7), (0.5, 0.5) and (0.7, 0.3). Each curve stands upright at its dot.
Property Value
Id ShapingFunctionId.EllipticalDoubleSigmoid, number 17
Category ShapingFunctionCategory.Elliptical
Name "Elliptical Double Sigmoid"
Order null
ParameterCount 2
HasVariableOrder false

For an input x from 0 to 1, the output is B(1 − √(A² − x²) / A) up to x = A, and B + (1 − B)·√((1 − A)² − (x − 1)²) / (1 − A) after it.

It starts and ends flat and is upright at (A, B). With B equal to A it is CircularDoubleSigmoid. With its defaults, A = 0.00001 and B = 0, it is CircularEaseOut to within 0.0003, so set A and B before using it. It stays within 0 to 1 and never goes back.

Properties

A →

float · From IOneParameter. The x of the point where the two arcs meet, upright. 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.

B →

float · From ITwoParameters. The y of that point: the curve is upright at (A, B). Clamped to 0 to 1 when set; 0 by default. Throws ArgumentOutOfRangeException for NaN and keeps the value it had.

Methods

EllipticalDoubleSigmoid() →

EllipticalDoubleSigmoid() · Creates the curve, with its parameters at their defaults. ShapingFunctionFactory.Create creates the same from ShapingFunctionId.EllipticalDoubleSigmoid.