简体   繁体   中英

How to find a Area Under the Curve from number of datas from the excel sheet using Python

I am completely unaware of

在此处输入图像描述

How to find the area under the curve using Python. The attached figure shows what I am looking for. I need to plot the graph, which has more than 6000 points, and then need to measure the area in the RED and GREEN regions. Can anyone help with this matter?

As Jeremy said, you can use the trapezoid rule. Numpy has a function for that. Here is a little example from an other question: Calculating the area under a curve given a set of coordinates, without knowing the function

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM