Docs / Shaping functions

Glossary: CircularDoubleSigmoid

The curve of CircularDoubleSigmoid, its parameters and its constructor.

Color legend plain property method

Two quarter circles that meet upright at (A, A): an S that stands vertical where they meet.

A class in the category ShapingFunctionCategory.Circular. 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 CircularDoubleSigmoid for several settings of its parameters
A = 0.25, 0.5 and 0.75. Each curve stands upright at its dot, the point (A, A).
Property Value
Id ShapingFunctionId.CircularDoubleSigmoid, number 9
Category ShapingFunctionCategory.Circular
Name "Circular Double Sigmoid"
Order null
ParameterCount 1
HasVariableOrder false

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

It starts and ends flat and is upright at (A, A). With the default A of 0.00001 it is CircularEaseOut to within 0.0003, so set A before using it. It stays within 0 to 1 and never goes back.

Properties

A →

float · From IOneParameter. Where the two arcs meet: the curve is upright at the point (A, A). 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

CircularDoubleSigmoid() →

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