Class Array2DEstimator<ItemEstimator, DistributionArray, Distribution>
Estimator for a 2-D DistributionArray type, where the samples are distributions
Implements
Estimator<DistributionArray>
Accumulator<DistributionArray>
SettableTo<Array2DEstimator<ItemEstimator, DistributionArray, Distribution>>
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public class Array2DEstimator<ItemEstimator, DistributionArray, Distribution> : Estimator<DistributionArray>, Accumulator<DistributionArray>, SettableTo<Array2DEstimator<ItemEstimator, DistributionArray, Distribution>>, ICloneable where ItemEstimator : Estimator<Distribution>, Accumulator<Distribution>, SettableTo<ItemEstimator>, ICloneable where DistributionArray : IArray2D<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 a DistributionArray element. |
Constructors
Array2DEstimator(ItemEstimator[,])
Constructs an ArrayEstimator
Declaration
public Array2DEstimator(ItemEstimator[, ] estimators)
Parameters
Type | Name | Description |
---|---|---|
ItemEstimator[,] | estimators | ItemEstimator for each array element |
Array2DEstimator(Int32, Int32, Func<Int32, Int32, ItemEstimator>)
Constructs an ArrayEstimator
Declaration
public Array2DEstimator(int length1, int length2, Func<int, int, ItemEstimator> createEstimator)
Parameters
Type | Name | Description |
---|---|---|
Int32 | length1 | Length of first dimension of array |
Int32 | length2 | Length of second dimension of array |
Func<Int32, 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(Array2DEstimator<ItemEstimator, DistributionArray, Distribution>)
Set this ArrayEstimator to another ArrayEstimator
Declaration
public void SetTo(Array2DEstimator<ItemEstimator, DistributionArray, Distribution> value)
Parameters
Type | Name | Description |
---|---|---|
Array2DEstimator<ItemEstimator, DistributionArray, Distribution> | value |