What is the best math library to use with java? [c

2020-06-01 04:44发布

问题:

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 8 years ago.

I want to use math functions for data mining and analytics purpose. I need an opinion about a library that I can use for this purpose with java. Do you have any recommendations?

回答1:

There is colt.

The Colt library provides fundamental general-purpose data structures optimized for numerical data, such as resizable arrays, dense and sparse matrices (multi-dimensional arrays), linear algebra, associative containers and buffer management.

The Jet library contains mathematical and statistical tools for data analysis, powerful histogramming functionality, Random Number Generators and Distributions useful for (event) simulations, and more.

The CoreJava library contains C-like print formatting. The Concurrent library contains standardized, efficient utility classes commonly encountered in parallel & concurrent programming.



回答2:

Apache Commons Math might be helpful. So might JAMA.

UPDATE: In the 2.5 years since I last answered this, I've become aware of Apache's Mahout and WEKA. Both are excellent Java libraries for data analysis.

Both are more appropriate answers for the narrower concern of data mining.



回答3:

JScience is certainly worth a look. Some examples involving rational arithmetic and unit conversion are seen here, here and here.



回答4:

java.lang.Math

has got a lot of useful math functions.



回答5:

Your question is a little vague but check out Weka.