Interface Summable<TOther, TResult>
Supports computing the weighted sum of the current instance and another value.
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Quality(QualityBand.Experimental)]
public interface Summable<in TOther, out TResult>
Type Parameters
| Name | Description |
|---|---|
| TOther | The type of the second summand. |
| TResult | The type of the result. |
Remarks
Typically the type of the result would be the same as the type of the current instance.
Methods
Sum(Double, TOther, Double)
Computes a distribution with its parameters set to best match a mixture distribution.
Declaration
TResult Sum(double weightThis, TOther other, double weightOther)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | weightThis | A finite nonnegative weight. |
| TOther | other | Second value. |
| Double | weightOther | A finite nonnegative weight. |
Returns
| Type | Description |
|---|---|
| TResult | A distribution of the result type that best matches a mixture distribution. |