http://commons.apache.org/proper/commons-math/userguide/stat.html

mark

 

DescriptiveStatistics maintains the input data in memory and has the capability of producing "rolling" statistics computed from a "window" consisting of the most recently added values.

SummaryStatistics does not store the input data values in memory, so the statistics included in this aggregate are limited to those that can be computed in one pass through the data without access to the full array of values.

 

如果不需要cache,one pass就可以算出来, 用SummaryStatistics

DescriptiveStatistics 会cache所有数据在memory,用于无法one pass算出来的,支持window和rolling

SummaryStatistics can be aggregated using AggregateSummaryStatistics. This class can be used to concurrently gather statistics for multiple datasets as well as for a combined sample including all of the data.

MultivariateSummaryStatistics is similar to SummaryStatistics but handles n-tuple values instead of scalar values. It can also compute the full covariance matrix for the input data.

Neither DescriptiveStatistics nor SummaryStatistics is thread-safe. SynchronizedDescriptiveStatistics and SynchronizedSummaryStatistics, respectively, provide thread-safe versions for applications that require concurrent access to statistical aggregates by multiple threads.SynchronizedMultivariateSummaryStatistics provides thread-safe MultivariateSummaryStatistics.

There is also a utility class, StatUtils, that provides static methods for computing statistics directly from double[] arrays.

一些变体,

StatUtils可以方便的使用,

 

例子,看原文,很好懂

最新文章

  1. 【代码笔记】iOS-正方形转换
  2. Only Link: What's the difference between dynamic dispatch and dynamic binding
  3. .NET连接SAP系统专题:SAP中新建可远程调用的RFC(二)
  4. MVC 提交表单
  5. 使用navicat 11 出现不能返回存储过程结果的问题
  6. (转)检测到在集成的托管管道模式下不适用的ASP.NET设置的解决方法(转)
  7. Boost::thread库的使用
  8. Spring Boot 入门教程
  9. 初始Oracle
  10. Java 并发工具包 | J.U.C
  11. guava常用
  12. mysql查看某个表的列名
  13. c++中友元机制
  14. MySql 常见错误代码大全
  15. Unable to convert MySQL date/time value to System.DateTime
  16. openTSDB(转)
  17. 算法:插入排序(Insertion Sort)
  18. 使用IntelRealScene设备结合Cocos引擎实现体感游戏开发
  19. TCP三次握手和四次挥手、HTTP协议
  20. Notepad++ xml/json格式化

热门文章

  1. ES6,Array.copyWithin()函数的用法
  2. (3) MySQL分区表使用方法
  3. 【Python】将python3.6软件的py文件打包成exe程序
  4. c# 使用GDAL处理大图
  5. Fedora 21 安装 Budgie Desktop
  6. 详解Linux安装GCC
  7. 在VSCode中成功安装Go相关插件问题:tools failed to install.
  8. Java开发中Maven Jar包管理建议
  9. PHP文件解密服务,微擎微赞模块解密,微擎模块解密
  10. tar分层压缩