[英] Calculate the Area under a Curve
我想计算曲线下的面积来进行积分,而不需要定义函数,比如integrate()
.
我的数据如下所示:
Date Strike Volatility
2003-01-01 20 0.2
2003-01-01 30 0.3
2003-01-01 40 0.4
etc.
我画了plot(strike, volatility)
张图来看看那笑容.有没有办法整合这条绘制的"曲线"?