Class ArrayEstimator<ItemEstimator, DistributionArray, Distribution, Sample>
Estimator for a DistributionArray type.
Implements
Estimator<DistributionArray>
Accumulator<Sample[]>
SettableTo<ArrayEstimator<ItemEstimator, DistributionArray, Distribution, Sample>>
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class ArrayEstimator<ItemEstimator, DistributionArray, Distribution, Sample> : Estimator<DistributionArray>, Accumulator<Sample[]>, SettableTo<ArrayEstimator<ItemEstimator, DistributionArray, Distribution, Sample>>, ICloneable where ItemEstimator : Estimator<Distribution>, Accumulator<Sample>, SettableTo<ItemEstimator>, ICloneable where DistributionArray : IList<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. |
Sample | Type of a SampleArray element - can be distributions. |
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(Sample[])
Adds an array item to the estimator
Declaration
public void Add(Sample[] item)
Parameters
Type | Name | Description |
---|---|---|
Sample[] | 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, Sample>)
Set this ArrayEstimator to another ArrayEstimator
Declaration
public void SetTo(ArrayEstimator<ItemEstimator, DistributionArray, Distribution, Sample> value)
Parameters
Type | Name | Description |
---|---|---|
ArrayEstimator<ItemEstimator, DistributionArray, Distribution, Sample> | value |