Apache Commons Math 3.4 發布
Apache Commons Math 3.4 發布,此版本是個 bug 修復版本,同時也包括一些新特性。此版本對現有特性對于向后兼容方面允許嵌入替代 v3.3. JAR 文件。此版本最值得關注的是:新版本 (Gumbel, Laplace,
Logistic, Nakagami);改進百分數值算法(更好的處理常規算法的 NANs,添加了一個新的 storeless 實現)。此版本修復了兩次立方和六次立方的相關問題。此版本還有大量的 bug 修復和相關的性能和健壯性方面的提升。
此版本最低要求 Java 5,強烈建議用戶升級到此版本,不單單的 bug 修復,還有大量的廢棄類。
完整改進列表請看發行說明:
http://www.apache.org/dist/commons/math/RELEASE-NOTES.txt
源代碼和二進制下載:
http://commons.apache.org/proper/commons-math/download_math.cgi
Maven :
GroupId: org.apache.commons
ArtifactId: commons-math3
Version: 3.4
Commons Math 是 Apache 上一個輕量級自容器的數學和統計計算方法包,包含大多數常用的數值算法。
示例代碼:
// Create a real matrix with two rows and three columns double[][] matrixData = { {1d,2d,3d}, {2d,5d,3d}}; RealMatrix m = new Array2DRowRealMatrix(matrixData);// One more with three rows, two columns double[][] matrixData2 = { {1d,2d}, {2d,5d}, {1d, 7d}}; RealMatrix n = new Array2DRowRealMatrix(matrixData2);
// Note: The constructor copies the input double[][] array.
// Now multiply m by n RealMatrix p = m.multiply(n); System.out.println(p.getRowDimension()); // 2 System.out.println(p.getColumnDimension()); // 2
// Invert p, using LU decomposition RealMatrix pInverse = new LUDecompositionImpl(p).getSolver().getInverse();</pre>
來自:http://www.oschina.net/news/58324/apache-commons-math-3-4-released本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!