Hei Ganesh, yep I used JMathTools too. And there is a slightly modifed library of JMathTools (I think i modified it to make it run with Java 1.5) coming with OpenJUMP it is jmatharray-20070905.jar I also used jmathplot for some graphs for my plot plugin [1] and an old JMath lib for some map generalization algroithms [see also 1] (before the maintainer rewrote things). But those libraries are not included and I simply deliver them with my plugin (you will see it when you download).
Porting the code from Matlab is possible, but not sooo easy. The old JMath library (the one I used for the map generalization) had actually a Matlab helper class, but the new JMathArray lib doesn't have the Matrix class anymore, but a new DoubleArray class, that need to be used. So I see two ways: (i) you would port the MatlabFunction class (which may be cumbersome) to make porting easier, or (ii) you adopt the code to use Double Arrays (to build the matrices) and then the class DoubleArray and the Statistics class to do some math. But I would recommend you to use the existing JMathArray lib that comes with OpenJUMP 1.3/1.3.1 if possible. not sure if that really helps. have a good new year too stefan [1] http://www.geo.uzh.ch/~sstein/ : search for MapGen Toolbox and Classification and Plot ganesh krishnamurthy schrieb: > Hi, > > I am new to using OpenJUMP....recently figured out how to create plugins > ... thanks to some nice documentation in wiki pages .... > > i have designed an algorithm on MATLAB (non rigid conflation for road > vectors) & wanted to port it to OpenJUMP ... came across JMathTools > <http://jmathtools.sourceforge.net/doku.php> & wanted to know if there > is a library that allows me to port Matlab code to Java easily ........ > > WISH YOU ALL A VERY HAPPY & PROSPEROUS NEW YEAR > > > Thanks > Ganesh > > <http://windows.microsoft.com/shop> > ------------------------------------------------------------------------ > New Windows 7: Find the right PC for you. Learn more. > <http://windows.microsoft.com/shop> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel