c# – 二进制数组的Akima插值

c# – 二进制数组的Akima插值,第1张

概述假设我有一个双打的数组,使用 Akima interpolation来抽取这个系列的好算法是什么?我很愚蠢地将该数学描述转化为代码. // values is an array of doubles// idx is the index of the left-hand value for the current interpolation// t is the normalized para 假设我有一个双打的数组,使用 Akima interpolation来抽取这个系列的好算法是什么?我很愚蠢地将该数学描述转化为代码.
// values is an array of doubles// IDx is the index of the left-hand value for the current interpolation// t is the normalized parameter between values[IDx] and values[IDx+1]// Don't worry about array bounds,I'll handle that separately.public double InterpolateAkima(double[] values,int IDx,double t){  ...?}
解决方法 对我对 another SO question的答复的转载和扩展,被关闭,作为这个问题的重复 – 正如关于这个问题的评论所建议的那样.

Akima的原始论文:
“基于本地程序的插值和平滑曲线拟合的新方法”,ACM 17,4(1970),589-602

http://www.leg.ufpr.br/lib/exe/fetch.php/wiki:internas:biblioteca:akima.pdf

C实现

https://github.com/ampl/gsl/blob/master/interpolation/akima.c

C#实现

https://gist.github.com/dreikanter/3526685

Delphi实现(参见程序BuildAkimaSpline in delphi / src / spline3.pas)

http://www.alglib.net/translator/re/alglib-2.6.0.delphi.zip

Akima的Fortran 66实现

http://cran.r-project.org/web/packages/akima/

Fortran 90实现

http://miyoshi.googlecode.com/svn-history/r72/trunk/common/common.f90

Java实现

https://commons.apache.org/proper/commons-math/jacoco/org.apache.commons.math3.analysis.interpolation/AkimaSplineInterpolator.java.html

对于autoCAD 2d-polylines的lisp实现“

http://autocad.xarch.at/code/candido/akima.lsp

Matlab实现

http://www.mathworks.se/matlabcentral/fileexchange/1814-akima-interpolation

Pascal实现(program description)

http://jean-pierre.moreau.pagesperso-orange.fr/Pascal/akima_pas.txt

Python实现

http://www.lfd.uci.edu/~gohlke/code/akima.py.html

VB6实现(请参阅vb6 / src / spline3.bas中的子程序BuildAkimaSpline)

http://www.alglib.net/translator/re/alglib-2.6.0.vb6.zip

http://www.koders.com/cpp/fid1393B9D668316C1700966643DE0609660B9CB13A.aspx?s=%22Brian+Smith%22

总结

以上是内存溢出为你收集整理的c# – 二进制数组的Akima插值全部内容,希望文章能够帮你解决c# – 二进制数组的Akima插值所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1259907.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-07
下一篇 2022-06-07

发表评论

登录后才能评论

评论列表(0条)

保存