DoubleAggregator 结构

定义

对一个 double 值序列计算聚合。Computes aggregates over a sequence of double values.

此 API 支持产品基础结构,不能在代码中直接使用。

public value class DoubleAggregator
public struct DoubleAggregator
type DoubleAggregator = struct
Public Structure DoubleAggregator
继承
DoubleAggregator

属性

AverageResult

对一个 double 值序列计算平均值。Computes the average value over a sequence of double values.

IsEmpty

确定 double 值序列是否为空。Determines whether a sequence of double values is empty.

MaximumResult

返回 double 值序列的最大值。Returns the maximum value of a sequence of double values.

MinimumResult

返回 double 值序列的最小值。Returns the minimum value of a sequence of double values.

SumResult

返回 double 值序列之和。Returns the sum of a sequence of double values.

方法

Average(Double)

返回 double 值序列的平均值。Returns the average of a sequence of double values.

Create()

初始化 double 值的序列。Initializes a sequence of double values.

Maximum(Double)

如果 value 参数大于现有结果,则将 value 参数赋给现有结果。Assigns the value parameter to the existing result if the value parameter is greater than the existing result.

Minimum(Double)

如果 value 参数小于现有结果,则将 value 参数赋给现有结果。Assigns the value parameter to the existing result if the value parameter is less than the existing result.

Sum(Double)

向现有结果添加 Double 值。Adds a Double value to the existing result.

适用于