Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获得 y 所附图片中所示的 x 函数。由于峰值行为,我无法使用多项式拟合获得此函数。拟合曲线以获得输出将是 x 的显式函数的方程的最佳方法是什么?
如上所述,可以使用 if-else 语句以编程方式轻松地分别对左侧和右侧进行建模,如“if x < [x value for max(y)] use model1 else use model2”