Optimal Fit: Two Conn. Lines w/ Diff. Slopes

Hello,
If my data are distributed like two lines who intersect i.e. one line goes until some point, and at that point another line emerges with a different slope (they share the same sign).
Is there a way to find
  1. equations of each of the lines
  2. an estimate of the crossover x-value which lies between each curve
  3. a fit goodness measure (Sigma, or chisq?)
I've been looking online for awhile online and I haven't found anything. Any help would be much appreciated.
Thanks,
Michael

回答 (1 件)

Matt J
Matt J 2013 年 11 月 16 日

0 投票

So basically you're looking for a 1st order spline fit? This FEX submission would be applicable

1 件のコメント

Michael
Michael 2013 年 11 月 20 日
I think this is a complicated solution. Thank you though!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeFit Postprocessing についてさらに検索

質問済み:

2013 年 11 月 16 日

コメント済み:

2013 年 11 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by