# DoubleAggregator 结构

## 定义

``public value class DoubleAggregator``
``public struct DoubleAggregator``
``type DoubleAggregator = struct``
``Public Structure DoubleAggregator``

DoubleAggregator

## 属性

 对一个 `double` 值序列计算平均值。Computes the average value over a sequence of `double` values. 确定 `double` 值序列是否为空。Determines whether a sequence of `double` values is empty. 返回 `double` 值序列的最大值。Returns the maximum value of a sequence of `double` values. 返回 `double` 值序列的最小值。Returns the minimum value of a sequence of `double` values. 返回 `double` 值序列之和。Returns the sum of a sequence of `double` values.

## 方法

 返回 `double` 值序列的平均值。Returns the average of a sequence of `double` values. 初始化 `double` 值的序列。Initializes a sequence of `double` values. 如果 `value` 参数大于现有结果，则将 `value` 参数赋给现有结果。Assigns the `value` parameter to the existing result if the `value` parameter is greater than the existing result. 如果 `value` 参数小于现有结果，则将 `value` 参数赋给现有结果。Assigns the `value` parameter to the existing result if the `value` parameter is less than the existing result. 向现有结果添加 Double 值。Adds a Double value to the existing result.