Class WrappedGaussianProductOp
Provides outgoing messages for the following factors:
, given random arguments to the function.Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Factor), "Product", new Type[]{typeof(double), typeof(double)})]
[FactorMethod(new string[]{"A", "Product", "B"}, typeof(Factor), "Ratio", new Type[]{typeof(double), typeof(double)})]
[Quality(QualityBand.Experimental)]
public static class WrappedGaussianProductOp
Methods
AAverageConditional(WrappedGaussian, Double, WrappedGaussian)
EP message to a
.
Declaration
public static WrappedGaussian AAverageConditional(WrappedGaussian Product, double B, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
WrappedGaussian | Product | Incoming message from |
Double | B | Constant value for |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is a distribution matching the moments of a
as the random arguments are varied. The formula is proj[p(a) sum_(product) p(product) factor(product,a,b)]/p(a)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
AAverageConditional(Double, Double, WrappedGaussian)
EP message to a
.
Declaration
public static WrappedGaussian AAverageConditional(double Product, double B, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
Double | Product | Constant value for |
Double | B | Constant value for |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is the factor viewed as a function of a
conditioned on the given values.
AAverageLogarithm(WrappedGaussian, Double, WrappedGaussian)
VMP message to a
.
Declaration
public static WrappedGaussian AAverageLogarithm(WrappedGaussian Product, double B, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
WrappedGaussian | Product | Incoming message from |
Double | B | Constant value for |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is the factor viewed as a function of a
with product
integrated out. The formula is sum_product p(product) factor(product,a,b)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
AAverageLogarithm(Double, Double, WrappedGaussian)
VMP message to a
.
Declaration
public static WrappedGaussian AAverageLogarithm(double Product, double B, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
Double | Product | Constant value for |
Double | B | Constant value for |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is the factor viewed as a function of a
conditioned on the given values.
AverageLogFactor(WrappedGaussian)
Evidence message for VMP.
Declaration
public static double AverageLogFactor(WrappedGaussian product)
Parameters
Type | Name | Description |
---|---|---|
WrappedGaussian | product | Incoming message from |
Returns
Type | Description |
---|---|
Double | Zero. |
Remarks
In Variational Message Passing, the evidence contribution of a deterministic factor is zero. Adding up these values across all factors and variables gives the log-evidence estimate for VMP.
BAverageConditional(WrappedGaussian, Double, WrappedGaussian)
EP message to b
.
Declaration
public static WrappedGaussian BAverageConditional(WrappedGaussian Product, double A, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
WrappedGaussian | Product | Incoming message from |
Double | A | Constant value for |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is a distribution matching the moments of b
as the random arguments are varied. The formula is proj[p(b) sum_(product) p(product) factor(product,a,b)]/p(b)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
BAverageLogarithm(WrappedGaussian, Double, WrappedGaussian)
VMP message to b
.
Declaration
public static WrappedGaussian BAverageLogarithm(WrappedGaussian Product, double A, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
WrappedGaussian | Product | Incoming message from |
Double | A | Constant value for |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is the factor viewed as a function of b
with product
integrated out. The formula is sum_product p(product) factor(product,a,b)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
ProductAverageLogarithm(WrappedGaussian, Double, WrappedGaussian)
VMP message to product
.
Declaration
public static WrappedGaussian ProductAverageLogarithm(WrappedGaussian A, double B, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
WrappedGaussian | A | Incoming message from |
Double | B | Constant value for |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is a distribution matching the moments of product
as the random arguments are varied. The formula is proj[sum_(a) p(a) factor(product,a,b)]
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
ProductAverageLogarithm(Double, WrappedGaussian, WrappedGaussian)
VMP message to product
.
Declaration
public static WrappedGaussian ProductAverageLogarithm(double A, WrappedGaussian B, WrappedGaussian result)
Parameters
Type | Name | Description |
---|---|---|
Double | A | Constant value for |
WrappedGaussian | B | Incoming message from |
WrappedGaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
WrappedGaussian |
|
Remarks
The outgoing message is a distribution matching the moments of product
as the random arguments are varied. The formula is proj[sum_(b) p(b) factor(product,a,b)]
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|