在Anthor曲线上绘制跳跃曲线

发布于 2025-02-01 03:47:18 字数 870 浏览 0 评论 0原文

我只想绘制这样的东西:

我已经计算了灰色曲线,并且知道蓝图的功能。我想每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:
enter image description here

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:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文