2012-01-25 574 views

回答

1

也许,可以使用Numpy的numpy.piecewise()工具。
更详细的描述如下所示: How to apply piecewise linear fit in Python?

如果这不是需要什么,然后你可以或许找到这些问题的一些有用的信息: https://datascience.stackexchange.com/questions/8266/is-there-a-library-that-would-perform-segmented-linear-regression-in-python

这里:
https://datascience.stackexchange.com/questions/8457/python-library-for-segmented-regression-a-k-a-piecewise-regression