J2ME中MATLAB的interp1函数的实现 [英] implementation of interp1 function of MATLAB in J2ME

查看:86
本文介绍了J2ME中MATLAB的interp1函数的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望实现在J2ME或JAVA中的MATLAB中可用的interp1、1-D数据插值(表查找)功能.这是链接

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

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

解决方案

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

http://multigraph.sourceforge.net/multigraph/javadoc/multigraph /LinearInterpolator.html

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

http://sourceforge.net/projects/multigraph/files/multigraph/

i am looking to implement the interp1, 1-D data interpolation (table lookup), function available in MATLAB in J2ME or JAVA. here is the link

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

Is there any library available in J2ME or JAVA which has already implemented the same function ? If not can anybody help me in implementing interp1 function in J2ME or JAVA ?

解决方案

i just found out the method used for linear interpolation if 'linear' is selected for method parameter in the syntax of interp1 function, which is : interp1(x,y,xi,'linear'). This is implemented in the method interp(double x) of class LinearInterpolator which is present in multigraph package. the link is below

http://multigraph.sourceforge.net/multigraph/javadoc/multigraph/LinearInterpolator.html

if u download the package and open the file LinearInterpolator.java u can find the code. The link to download the package is

http://sourceforge.net/projects/multigraph/files/multigraph/

这篇关于J2ME中MATLAB的interp1函数的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆