Function normalize

  • Normalize a number from its current range into a value between 0 and 1.

    Parameters

    • x: number

      a number

    • r: number

      lower bound of current range

    • R: number

      upper bound of current range

    Returns number

    ∈ [0, 1]

Generated using TypeDoc