Using scipy to perform discrete integration of the sample

后端 未结 2 986
我寻月下人不归
我寻月下人不归 2021-01-12 17:50

I am trying to port from labview to python.

In labview there is a function \"Integral x(t) VI\" that takes a set of samples as input, performs a discrete integratio

2条回答
  •  悲哀的现实
    2021-01-12 17:57

    There is only one method in SciPy that does cumulative integration which is scipy.integrate.cumtrapz() which does what you want as long as you don't specifically need to use the Simpson rule or another method. For that, you can as suggested always write the loop on your own.

提交回复
热议问题