Function normalize

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

    Returns

    ∈ [0, 1]

    Parameters

    • x: number

      a number

    • r: number

      lower bound of current range

    • R: number

      upper bound of current range

    Returns number

Generated using TypeDoc