当数据是时间序列时,如何在 Julia 中绘制最佳拟合曲线?
我正在尝试使用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 技术交流群。

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