Based on feedback in https://github.com/DataDog/piecewise/issues/5, this PR updates the package to allow data sets that have duplicate t values. The only change needed to make this possible is an update to the initialization logic. With these updates, points with the same t values will always be initially assigned to the same segments. All other logic (i.e., the segment merging process) remains unchanged.
Based on feedback in https://github.com/DataDog/piecewise/issues/5, this PR updates the package to allow data sets that have duplicate
t
values. The only change needed to make this possible is an update to the initialization logic. With these updates, points with the samet
values will always be initially assigned to the same segments. All other logic (i.e., the segment merging process) remains unchanged.