Skip to main content

How do I fit two linear curve fit segments that meet at a breakpoint?

Use a formula like: ((m0 < m1) ? m2+m3*m0 : 0) + ((m0 >= m1) ? m3*m1 + m2+m4*(m0-m1) : 0)

m1 is the breakpoint, m2 is the intercept of the first segment, m3 is the slope of the first segment, and m4 is the slope of the second segment

You may want to lower the Allowable Error to 0.1 or less to make sure you get a good value for the breakpoint.

Scroll to Top
Synergy Software
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.