Function normalizePhenomeRow

  • Normalizes an array of numbers to the range from -1 to 1, where the reference value is mapped to 0.

    Parameters

    • input: PhenomeRow

      The array of numbers to normalize.

    • reference: number

      The reference value to map to 0.

    Returns PhenomeRow

    The normalized array of numbers.