Scipy - 两条曲线之间的区域

时间:2016-01-04 22:04:18

标签: python scipy numerical-methods

我有一个我的系统应该遵循的输入信号。此信号每4秒更改一次。我尽可能快地测量输出。

这是一个输入计划(缩短):

input_data = 

[['0', '0'],['4','0'],
 ['4', '-0.075408269'],
 ['8','-.075408269'],
 ['8', '-0.075133293'],
 ['12','-0.075133293'],
 ['12', '-0.075228368']...

一些输出数据(缩短):

output_data = 

 [['0.0', '-1.92884041347e-05'],
 ['0.385990779068', '-1.92884041347e-05'],
 ['0.652384253241', '-3.20466635861e-05'],
 ['0.917284728537', '-1.92868566406e-05'],
 ['1.18289737777', '-3.20440903147e-05'],
 ['1.4479258519', '-1.92837604576e-05'],
 ['1.71312114154', '-1.92837604576e-05'],
 ['1.97829750404', '-3.20389477431e-05'],
 ['2.24393068441', '-3.20389477431e-05'],
 ['2.50852094701', '-3.20363764573e-05'],
 ['2.77392571844', '-1.92806654695e-05'],
 ['3.03912132888', '-1.92806654695e-05'],
 ['3.30450492758', '-1.92791167805e-05'],
 ['3.56940123249', '-3.20312319002e-05'],
 ['3.83460582531', '-3.20312319002e-05'],
 ['4.10000450158', '-3.20312319002e-05'],
 ['4.36509456911', '-0.0753899203822'],
 ['4.63028600917', '-0.0754154062438'],
 ['4.8955233235', '-0.075402663313'],
 ['5.16063488457', '-0.0754220898514'],
 ['5.42586289573', '-0.0754093479443'],
 ['5.69089489864', '-0.0754032896447'],
 ['5.95638981462', '-0.0754032896447'],
 ['6.22145485983', '-0.075397226667'],
 ['6.48666073585', '-0.0754160305282'],
 ['6.75187270704', '-0.0754160305282'],
 ['7.01701827283', '-0.075397226667'],
 ['7.28112027923', '-0.075397226667'],
 ['7.53174038384', '-0.0754099665259'],
 ['7.79702613882', '-0.0754166531947'],
 ['8.06223426043', '-0.0754105928472'],
 ['8.32742056769', '-0.0751303252107'],
 ['8.59244647543', '-0.0751363630346'],
 ['8.85782750774', '-0.0751303252107'],
 ['9.12303113815', '-0.0751370195117'],
 ['9.38824727973', '-0.0751309806642'],
 ['9.65310573036', '-0.0751309806642'],
 ['9.91784195654', '-0.0751309806642'],
 ['10.1839925858', '-0.0751242827245'],
 ['10.4489851304', '-0.0751437164277'],
 ['10.7132407996', '-0.0751249418166'],
 ['10.9636126057', '-0.0751249418166'],
 ['11.2291107297', '-0.0751376765565'],
 ['11.4941857197', '-0.0751376765565'],
 ['11.7594365076', '-0.0751249418166'],
 ['12.0243972931', '-0.0751316320213']...

两个(缩短的)组的图如下所示。 Input Vs Output

我怎样才能计算两条曲线之间的总面积?

0 个答案:

没有答案