I am in trouble with piecewise linear function to fit 3 or 4 segment.please give me the fit function and how to initialize the fitting parameters in Code Builder. thanks!
First of all, you can refer to Fitting with a Piecewise Linear Function tutorial to learn how to fit piecewise linear function, and then according to the Origin C example Fit User Defined Function, you can follow it to fit your defined piecewise linear function. The example also shows how to initialize the fitting parameters.