ixfx
    Preparing search index...

    Namespace Numbers

    Sub-modules

    Working with scalar values

    • Numbers.Normalise: normalise values
    • proportion: Scales one scalar by another
    • wrap: Wraps a value to be within a range
    • flip: Flips a percentage-scale number (eg 1 => 0, 0.5 => 0.5, 0 => 1)

    Averaging/rounding

    Calculating

    Generators/iterators

    • count: Generate a set numbers, counting by one
    • numericPercent: Generate a range of numbers on the percentage scale of 0-1
    • numericRange: Generate a range of numbers
    • filter: Filter a generator, only yielding those which are numbers
    • linearSpace: Generates series of values between start and end

    Clamping:

    • clamp: Restrict a number to a given range
    • clampIndex: Restrict a number to be within the size of an array

    Scaling:

    • scale: Scale a value from an input range to an output range. scaler returns a function to scale values.
    • scaleClamped: Scale a value from an input range to an output range, clamping so that output range is a hard limit
    • scalePercent: Scale input percentage to an output range
    • scalePercentages: Scale input percentage to an output percentage range

    Interpolate

    Etc

    Namespaces

    Bipolar
    Normalise

    Type Aliases

    DifferenceKind
    InterpolateOptions
    MinMaxAvgOpts
    MinMaxAvgTotal
    MovingAverageTimedOptions
    NumberScaler
    NumberScalerTwoWay

    Variables

    piPi

    Functions

    applyToValues
    average
    averageWeighted
    clamp
    clamper
    clampIndex
    count
    differenceFromFixed
    differenceFromLast
    dotProduct
    filterIterable
    flip
    interpolate
    interpolateAngle
    interpolatorInterval
    interpolatorStepped
    isApprox
    isValid
    linearSpace
    max
    maxFast
    maxIndex
    min
    minFast
    minIndex
    minMaxAvg
    movingAverage
    movingAverageLight
    movingAverageTimed
    noiseFilter
    numericPercent
    numericRange
    numericRangeRaw
    proportion
    quantiseEvery
    rangeInclusive
    round
    scale
    scaleClamped
    scalePercent
    scalePercentages
    scaler
    scalerNull
    scalerPercent
    scalerTwoWay
    softmax
    thresholdAtLeast
    total
    totalFast
    validNumbers
    weight
    wrap
    wrapInteger
    wrapRange