- 阅读权限
- 255
- 威望
- 1 级
- 论坛币
- 49675 个
- 通用积分
- 56.2487
- 学术水平
- 370 点
- 热心指数
- 273 点
- 信用等级
- 335 点
- 经验
- 57805 点
- 帖子
- 4005
- 精华
- 21
- 在线时间
- 582 小时
- 注册时间
- 2005-5-8
- 最后登录
- 2023-11-26
|
21楼
ReneeBK(未真实交易用户)
发表于 2017-8-7 04:07:40
|
- Example 4-15. Output of summary statistics calculation
- DoubleSummaryStatistics{count=10000, sum=4983.859228, min=0.000264,
- average=0.498386, max=0.999998}
- Other reduction operations like sum, count, max, min, and average do what
- you would expect. The only interesting part is that some of them return
- optionals, because if there are no elements in the stream (perhaps after a
- filtering operation) the result is undefined or null.
复制代码
|
|