Hi,
I am considering the case where a curve is divided into multiple segments then each segment is fitted using a line that minimizes the square error. I am using the well-known dynamic program to find the best segmentation (http://people.cs.umass.edu/~sheldon/teaching/mhc/cs312/2013sp/Slides/Slides15%20-%20Segmented%20Least%20Squares.pdf ) . But I am struggling with tuning the constant that represents the cost that is multiplied by the number of segments. Is anyone aware of any heuristic to find an appropriate value for this constant apart from empirical evaluation? Thank you.
Mehiar