发布于 2015-04-18 23:52:30 | 190 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

Apache Commons

Apache Commons项目的由三部分组成:The Commons Proper - 一个可重用的Java组件库。The Commons Sandbox - Java组件开发工作区. The Commons Dormant - 当前处于非活动状态的组件库.


Apache Commons Math 3.5 发布,此版本是个小版本发布,主要是一些 bug 修复和新特性,现有特性的修改都向后兼容,允许替代 v3.4.1 JAR 文件。

值得关注的特性:DescriptiveStatistics SummaryStatistics 新增 getQuadraticMean 方法;还有大量的 bug 修复;最低要求 Java 5。强烈建议所有用户升级到最新版本!

请注意,这个版本标记弃用的大量的类和方法会在下一个重大版本 4.0 全部移除!

这是一个小更新版本,改进包括:

New features:
o Added a way to build polyhedrons sets from a list of vertices and
        facets specified using vertices indices.
o Simplified "FastMath#exp(double)" in order to avoid a potential
        Java 1.5 JIT bug when calling with negative infinity as argument.  Issue: MATH-1198.
o Added method "getQuadraticMean()" to "DescriptiveStatistics"
        and "SummaryStatistics" which calculates the root mean square.  Issue: MATH-1199.

Fixed Bugs:
o Moved FastMathTestPerformance out of the main test tree, as is is
        a benchmark rather than a test.  Issue: MATH-1195.
o Fixed ignored method parameters in QRDecomposition protected methods.  Issue: MATH-1191.
o Fixed wrong selection of line/polyhedron intersection point.  Issue: MATH-1211. Thanks to Mike Zimmerman.
o Improved fix for corner cases in BSP-tree merging, when cut sub-hyperplanes vanish.  Issue: MATH-1162.
o Fixed link to algorithm description in "PoissonDistribution#sample()".  Issue: MATH-1209. Thanks to Jonathan Ogilvie.
o EmpiricalDistribution cumulativeProbability can return NaN when evaluated within a constant bin.  Issue: MATH-1208.
o EmpiricalDistribution getKernel fails for buckets with only multiple instances of the same value.  Issue: MATH-1203.
o "UnivariateSolverUtils#bracket(...)" sometimes failed to bracket
        if a reached the lower bound.  Issue: MATH-1204.

Changes:
o Added Laguerre complex solve methods taking maxEval parameters.  Issue: MATH-1213.

完整改进请看发行说明:

http://www.apache.org/dist/commons/math/RELEASE-NOTES.txt 

下载:

http://commons.apache.org/proper/commons-math/download_math.cgi  

Apache Commons项目的由三部分组成:The Commons Proper - 一个可重用的Java组件库。The Commons Sandbox - Java组件开发工作区. The Commons Dormant - 当前处于非活动状态的组件库.

示例代码:

// 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();


历史版本 :
Apache Commons DBCP 2.2.0 发布
Apache Commons Pool 2.5.0 带来新特性和变更
Apache Commons Text 1.2,处理字符串的算法库
Apache Commons Lang 3.7 发布,Java 常用工具包
Apache Commons Compress 1.15 发布
Apache Commons VFS 2.2 发布,文件系统统一接口
Apache Commons JCS 2.2 发布,分布式缓存
Apache Commons CLI 1.4,Java 命令行参数处理类库
Apache Commons JCS 2.0 发布,分布式缓存
Apache Commons Compress 1.13 发布
Apache Commons Lang 3.5 发布
Apache Commons Weaver 1.3 发布
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务