Class ArrayEstimator<ItemEstimator, DistributionArray, Distribution>
Estimator for a DistributionArray type where the sample type is a distribution
Implements
Estimator<DistributionArray>
Accumulator<DistributionArray>
SettableTo<ArrayEstimator<ItemEstimator, DistributionArray, Distribution>>
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class ArrayEstimator<ItemEstimator, DistributionArray, Distribution> : Estimator<DistributionArray>, Accumulator<DistributionArray>, SettableTo<ArrayEstimator<ItemEstimator, DistributionArray, Distribution>>, ICloneable where ItemEstimator : Estimator<Distribution>, Accumulator<Distribution>, SettableTo<ItemEstimator>, ICloneable where DistributionArray : IArray<Distribution> where Distribution : SettableTo<Distribution>
Type Parameters
Name | Description |
---|---|
ItemEstimator | Type of estimator for each array element. |
DistributionArray | Type of DistributionArray to estimate. |
Distribution | Type of DistributionArray element. |
Constructors
ArrayEstimator(ItemEstimator[])
Constructs an ArrayEstimator
Declaration
public ArrayEstimator(ItemEstimator[] estimators)
Parameters
Type | Name | Description |
---|---|---|
ItemEstimator[] | estimators |
ArrayEstimator(Int32, Converter<Int32, ItemEstimator>)
Constructs an ArrayEstimator
Declaration
public ArrayEstimator(int length, Converter<int, ItemEstimator> createEstimator)
Parameters
Type | Name | Description |
---|---|---|
Int32 | length | Length of array |
Converter<Int32, ItemEstimator> | createEstimator | ItemEstimator for each array element |
Fields
estimators
The array of estimators
Declaration
protected ItemEstimator[] estimators
Field Value
Type | Description |
---|---|
ItemEstimator[] |
Methods
Add(DistributionArray)
Adds an array item to the estimator
Declaration
public void Add(DistributionArray item)
Parameters
Type | Name | Description |
---|---|---|
DistributionArray | item |
Clear()
Clears the estimator
Declaration
public void Clear()
Clone()
Clones this ArrayEstimator
Declaration
public object Clone()
Returns
Type | Description |
---|---|
Object |
GetDistribution(DistributionArray)
Retrieve the estimated distributions
Declaration
public DistributionArray GetDistribution(DistributionArray result)
Parameters
Type | Name | Description |
---|---|---|
DistributionArray | result |
Returns
Type | Description |
---|---|
DistributionArray |
SetTo(ArrayEstimator<ItemEstimator, DistributionArray, Distribution>)
Set this ArrayEstimator to another ArrayEstimator
Declaration
public void SetTo(ArrayEstimator<ItemEstimator, DistributionArray, Distribution> value)
Parameters
Type | Name | Description |
---|---|---|
ArrayEstimator<ItemEstimator, DistributionArray, Distribution> | value |