MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   J2ME中MATLAB的interp1函数的实现 (https://www.labfans.com/bbs/showthread.php?t=23513)

poster 2019-12-10 20:41

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

[URL]http://www.mathworks.com/access/helpdesk/help/techdoc/ref/interp1.html[/URL]

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



[B]回答:[/B]

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

[URL]http://multigraph.sourceforge.net/multigraph/javadoc/multigraph/LinearInterpolator.html[/URL]

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

[URL]http://sourceforge.net/projects/multigraph/files/multigraph/[/URL]



[url=https://stackoverflow.com/questions/2986650]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 20:27

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.