查看单个帖子
旧 2019-12-10, 20:41   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
帖子 J2ME中MATLAB的interp1函数的实现

我正在寻找实现interp1、1-D数据插值(表查找)的功能,可以在J2ME或JAVA的MATLAB中使用。链接在这里

http://www.mathworks.com/access/help...f/interp1.html

J2ME或JAVA中是否有已经实现相同功能的库?如果没有,有人可以帮助我在J2ME或JAVA中实现interp1功能吗?



回答:

我只是发现如果在interp1函数的语法中将方法参数选择为'linear',则该线性插值方法为:interp1(x,y,xi,'linear')。这是在multigraph包中提供的LinearInterpolator类的interp(double x)方法中实现的。链接在下面

http://multigraph.sourceforge.net/mu...erpolator.html

如果您下载软件包并打开文件LinearInterpolator.java,则可以找到代码。下载软件包的链接是

http://sourceforge.net/projects/mult...es/multigraph/



更多&回答...
poster 当前离线   回复时引用此帖