Function xyMergeByCentroids

  • Merge abscissa values if the ordinate value is in a list of centroids

    Parameters

    • data: DataXY<NumberArray>

      object containing 2 properties x and y

    • centroids: number[]

      centroids

    • options: XYMergeByCentroidsOptions = {}

      options

    Returns DataXY<Float64Array>

    merged points