Class UsesEqualDefVmpBufferOp
Provides outgoing messages for UsesEqualDef<T>(T, Int32, out T), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Clone), "UsesEqualDef<>", new Type[]{}, Default = true)]
[Quality(QualityBand.Mature)]
public static class UsesEqualDefVmpBufferOp
Methods
DefAverageLogarithm<T>(T, T)
VMP message to Def
.
Declaration
public static T DefAverageLogarithm<T>(T to_marginal, T result)
where T : SettableTo<T>
Parameters
Type | Name | Description |
---|---|---|
T | to_marginal | Previous outgoing message to |
T | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
T |
|
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
Remarks
The outgoing message is the factor viewed as a function of Def
conditioned on the given values.
MarginalAverageLogarithm<T>(IReadOnlyList<T>, T, T)
Declaration
[SkipIfAllUniform]
public static T MarginalAverageLogarithm<T>(IReadOnlyList<T> Uses, T Def, T result)
where T : SettableToProduct<T>, SettableTo<T>
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<T> | Uses | |
T | Def | |
T | result |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
UsesAverageLogarithm<T>(T, Int32, T)
VMP message to Uses
.
Declaration
public static T UsesAverageLogarithm<T>(T to_marginal, int resultIndex, T result)
where T : SettableTo<T>
Parameters
Type | Name | Description |
---|---|---|
T | to_marginal | Previous outgoing message to |
Int32 | resultIndex | Index of the |
T | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
T |
|
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
Remarks
The outgoing message is the factor viewed as a function of Uses
conditioned on the given values.