es6-fuzz - v7.1.1
    Preparing search index...

    Class Sigmoid

    Class representing a Sigmoid.

    // long slope
    const sigmoid = new Sigmoid(0, 100000);
    sigmoid.fuzzify(10); // ~0.500025

    Implements

    Index
    • Create a Sigmoid Function.

      Parameters

      • center: number = 0

        The center point of the sigmoid curve (where it outputs 0.5). Must be finite.

      • slope: number = 1

        Width of the transition: it appears in the denominator as 1 / (1 + exp(-(x - center) / slope)), so a smaller magnitude means a steeper transition and a larger magnitude a gentler one. A negative slope inverts the curve into a decreasing S (high membership below the center, low above). A slope of 0 degenerates to an increasing step at the center (0.5 exactly at the center). Must be finite; non-finite center/slope throw.

      Returns Sigmoid