Class AccumulatorList<T>
Wraps a list of accumulators, adding each sample to all of them.
Implements
Accumulator<T>
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class AccumulatorList<T> : Accumulator<T>
Type Parameters
Name | Description |
---|---|
T | The type to accumulate |
Constructors
AccumulatorList(Accumulator<T>[])
Constructs an accumulator list
Declaration
public AccumulatorList(params Accumulator<T>[] accumulators)
Parameters
Type | Name | Description |
---|---|---|
Accumulator<T>[] | accumulators |
Fields
Accumulators
The list of accumulators
Declaration
public List<Accumulator<T>> Accumulators
Field Value
Type | Description |
---|---|
List<Accumulator<T>> |
Methods
Add(T)
Add an item to all accumulators in the list
Declaration
public void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Clear()
Clear all accumulators in the list
Declaration
public void Clear()