Serving the Quantitative Finance Community

 
User avatar
JTB
Topic Author
Posts: 0
Joined: August 20th, 2010, 9:28 am

Java code/libraries

February 23rd, 2012, 7:47 am

Does anyone know which java libraries (sites with java codes) for implementing-optimization algorithms (estimating MLE of a simple regression model) based on Nelder and Mead (1965), BFGS or other "good" optimization algorithms (a java version of R's OPTIM-function- discrete fourier transforms- fast fourier transformJTB
 
User avatar
quantmeh
Posts: 0
Joined: April 6th, 2007, 1:39 pm

Java code/libraries

February 23rd, 2012, 1:57 pm

commons-math
 
User avatar
JTB
Topic Author
Posts: 0
Joined: August 20th, 2010, 9:28 am

Java code/libraries

February 23rd, 2012, 2:13 pm

Thanks for reply, quantmeh.I will look into this packages.
 
User avatar
axsaxs
Posts: 1
Joined: January 4th, 2008, 12:19 am

Java code/libraries

March 2nd, 2012, 10:32 pm

colt
 
User avatar
quantmeh
Posts: 0
Joined: April 6th, 2007, 1:39 pm

Java code/libraries

March 3rd, 2012, 3:51 pm

QuoteOriginally posted by: axsaxscoltcolts not supported, it's a dead project. its code base was ported to commons-math. sometimes i still use colt as it's very thin. commons is somewhat heavy.
 
User avatar
katastrofa
Posts: 7929
Joined: August 16th, 2007, 5:36 am
Location: Event Horizon

Java code/libraries

March 3rd, 2012, 11:38 pm

Linear algebra in Java is painful. It's neither convenient nor fast.
 
User avatar
mathmarc
Posts: 2
Joined: March 18th, 2003, 6:50 am

Java code/libraries

March 6th, 2012, 5:00 pm

QuoteOriginally posted by: katastrofaLinear algebra in Java is painful. It's neither convenient nor fast.At OpenGamma we are aware of and are working on these problems trying to improve speed of java maths with the OGMaths project. The project is open source and part of our Platform. The platform is available at http://developers.opengamma.com/. The platform version 1.0 should be released on 2 April.We also plan to release a procedurally orientated high level API to try and make it easier to perform mathematical operations in Java and to aid translation from more mathematically orientated languages to java.
 
User avatar
katastrofa
Posts: 7929
Joined: August 16th, 2007, 5:36 am
Location: Event Horizon

Java code/libraries

March 6th, 2012, 8:45 pm

To be honest, I think a good linear algebra library in Java should give up on object orientation. Just pass arrays around, and call Lapack-style functions on them. Occasionally one could use a light-weight adaptor to index the matrix in a 2d way, but only when constructing it.And store your functions in a class called "LA", to make it short.
 
User avatar
quantmeh
Posts: 0
Joined: April 6th, 2007, 1:39 pm

Java code/libraries

March 6th, 2012, 9:37 pm

QuoteOriginally posted by: katastrofaTo be honest, I think a good linear algebra library in Java should give up on object orientation. why would you need OO in linear algebra?
 
User avatar
katastrofa
Posts: 7929
Joined: August 16th, 2007, 5:36 am
Location: Event Horizon

Java code/libraries

March 7th, 2012, 10:29 am

QuoteOriginally posted by: quantmehQuoteOriginally posted by: katastrofaTo be honest, I think a good linear algebra library in Java should give up on object orientation. why would you need OO in linear algebra?One reason is that it's easier to pass the object representing a matrix around, instead of separately the data pointer, row size and column size (what if you confuse their order?).But the penalty Java makes you pay for this is so huge, that I'd prefer to send a nice plain double[] array and the size separately.