Interface CanCopyWithMeanAndVariance<MeanType, VarType, TDist>
Whether the distribution supports creating copies with different mean and variance.
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Quality(QualityBand.Experimental)]
public interface CanCopyWithMeanAndVariance<in MeanType, in VarType, out TDist>
Type Parameters
Name | Description |
---|---|
MeanType | Type of the mean value. |
VarType | Type of the variance value. |
TDist | Type of the distribution. |
Methods
WithMeanAndVariance(MeanType, VarType)
Creates a copy of the current distribution with mean and variance set to the provided values.
Declaration
TDist WithMeanAndVariance(MeanType mean, VarType variance)
Parameters
Type | Name | Description |
---|---|---|
MeanType | mean | Mean |
VarType | variance | Variance |
Returns
Type | Description |
---|---|
TDist | The created distribution. |
Remarks
In cases where the given mean and variance cannot be matched exactly, the mean should have priority.