• Finds the median x value for an object with properties x and y (arrays of the same length)

    Parameters

    • data: DataXY<NumberArray>

      x should be sorted in increasing order

    Returns number

    • the median of x values