当数据是时间序列时,如何在 Julia 中绘制最佳拟合曲线?

发布于 2025-01-19 02:48:46 字数 238 浏览 6 评论 0原文

我正在尝试使用Julia的绘图工具,随着时间的流逝,随着时间的推移绘制一些测量值。已经有一个相当不错的答案如何使用简单的数字数据系列:

?值。我想需要完成从日期转换为数字值的某种转换,但是我希望所得的图将其量表保留在日期单元中,这将需要再次转换。

我怀疑这是一个相当普遍的问题,必须有一种优雅的解决方法来解决它,但是对朱莉娅来说,我想向朱莉娅(Julia)提出一些指导,以了解一个好的解决方案?

谢谢!

I'm trying to plot some measurements over time with a best-fit curve, using Julia's plotting tools. There's already a fairly good answer how to do this with a simple numeric data series:

Julia: How to find best fit curve / equation when I have a plot?

However, these tools (well - at least the Polynomials package) do not like being given Date values. I imagine some sort of conversion from Dates into a numeric value needs to be done, but I want the resulting plots to retain their scales in date units, which would need a conversion back again.

I suspect this is a fairly common problem and there must be an elegant way to solve it, but being new to Julia I would like to ask for some pointers to what a good solution looks like?

Thanks!

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

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

发布评论

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