• Calculates the normalization of an array.

    Parameters

    • arr: number[]

      The array

    • Optional type: "L0" | "L1" | "L2" | "LInfinity" = "L2"

      The type of norm to normalize with, which can be "L0", "L1", "L2", or "LInfinity"

    Returns number[]

Generated using TypeDoc