DataDog / piecewise

## Auto-archived due to inactivity. ## Functions for piecewise regression on time series data
BSD 3-Clause "New" or "Revised" License
105 stars 35 forks source link

Allow data sets with duplicate `t` values #6

Closed StephenKappel closed 6 years ago

StephenKappel commented 6 years ago

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.