2

I am trying to obtain, y, a function of x illustrated in the picture attached. I cannot obtain this function using polynomial fitting because of the peaking behavior. What is the best method for fitting the curve to obtain an equation whose output will be an explicit function of x?enter image description here

Sterling Butters
  • 1,024
  • 3
  • 20
  • 41

1 Answers1

0

Modeling the left and right sides separately as noted above might be easily done programmatically with an if-else statement, as in "if x < [x value for max(y)] use model1 else use model2"

James Phillips
  • 4,526
  • 3
  • 13
  • 11