在Anthor曲线上绘制跳跃曲线
我已经计算了灰色曲线,并且知道蓝图的功能。我想每10天将每条蓝线设置为我的曲线。因为我的原始数据很大,如果您想验证,则可以使用这些数据。您可以使用此采用的代码。
def func(t,a,b,c,d):
return a*np.log(t+b)+c+t*d
def func_R( t, a0, a1, a2, a3, a4):
R1_fit_Curve=a0*np.exp(a1*(1-(28/t)**(4/5)))+a2*(t/((a3)**a4+t**a4))
return R1_fit_Curve
t_t=np.arange(1,120000)/100
y=func(t_t,-204,0.65,-35,0.15)
y=y+0.2*np.random.normal(size=y.size)
plt.plot(y)
r=-func_R(t_t,-4.57625313e-02,1.00437115e-01,-1.65239879e-01,3.00962474e-04,8.27987589e-01)
plt.plot(r)
结果:
I Just want to plot something like this:
I have calculated the gray curve and I know the function of blue diagram. I want to set each blue line to my curve with time shift for each 10 days. because my original data is very big if you want to validate you can use these data. you can use this adopted code.
def func(t,a,b,c,d):
return a*np.log(t+b)+c+t*d
def func_R( t, a0, a1, a2, a3, a4):
R1_fit_Curve=a0*np.exp(a1*(1-(28/t)**(4/5)))+a2*(t/((a3)**a4+t**a4))
return R1_fit_Curve
t_t=np.arange(1,120000)/100
y=func(t_t,-204,0.65,-35,0.15)
y=y+0.2*np.random.normal(size=y.size)
plt.plot(y)
r=-func_R(t_t,-4.57625313e-02,1.00437115e-01,-1.65239879e-01,3.00962474e-04,8.27987589e-01)
plt.plot(r)
and the result:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论