cjekel / piecewise_linear_fit_py

fit piecewise linear data for a specified number of line segments
MIT License
289 stars 59 forks source link

add option for fit functions to not include endpoints as breakpoints #23

Open cjekel opened 5 years ago

cjekel commented 5 years ago

Currently the fit functions assume that a breakpoint occurs at the smallest x_data point and the largest x_data point. This results in a simplified optimization problem.

However it may not result in the best continuous piecewise linear model.