Class DoublePlusOp
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), "Plus", new Type[]{typeof(double), typeof(double)}, Default = true)]
[FactorMethod(new string[]{"A", "Sum", "B"}, typeof(Factor), "Difference", new Type[]{typeof(double), typeof(double)}, Default = true)]
[Quality(QualityBand.Mature)]
public static class DoublePlusOp
Methods
AAverageConditional(Gaussian, Gaussian)
EP message to difference
.
Declaration
public static Gaussian AAverageConditional(Gaussian Sum, Gaussian b)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | Sum | Incoming message from |
Gaussian | b | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is a distribution matching the moments of difference
as the random arguments are varied. The formula is proj[p(difference) sum_(a,b) p(a,b) factor(difference,a,b)]/p(difference)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
ImproperMessageException |
|
AAverageConditional(Gaussian, Double)
EP message to difference
.
Declaration
public static Gaussian AAverageConditional(Gaussian Sum, double b)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | Sum | Incoming message from |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is a distribution matching the moments of difference
as the random arguments are varied. The formula is proj[p(difference) sum_(a) p(a) factor(difference,a,b)]/p(difference)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
AAverageConditional(Double, Gaussian)
EP message to difference
.
Declaration
public static Gaussian AAverageConditional(double Sum, Gaussian b)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Gaussian | b | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is a distribution matching the moments of difference
as the random arguments are varied. The formula is proj[p(difference) sum_(b) p(b) factor(difference,a,b)]/p(difference)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
AAverageConditional(Double, Double)
EP message to difference
.
Declaration
public static Gaussian AAverageConditional(double Sum, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is the factor viewed as a function of difference
conditioned on the given values.
BAverageConditional(Gaussian, Gaussian)
EP message to b
.
Declaration
public static Gaussian BAverageConditional(Gaussian Sum, Gaussian a)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | Sum | Incoming message from |
Gaussian | a | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
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_(a,difference) p(a,difference) factor(difference,a,b)]/p(b)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
ImproperMessageException |
|
BAverageConditional(Gaussian, Double)
EP message to b
.
Declaration
public static Gaussian BAverageConditional(Gaussian Sum, double a)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | Sum | Incoming message from |
Double | a | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
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_(a) p(a) factor(difference,a,b)]/p(b)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
BAverageConditional(Double, Gaussian)
EP message to b
.
Declaration
public static Gaussian BAverageConditional(double Sum, Gaussian a)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Gaussian | a | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
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_(difference) p(difference) factor(difference,a,b)]/p(b)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
BAverageConditional(Double, Double)
EP message to b
.
Declaration
public static Gaussian BAverageConditional(double Sum, double a)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Double | a | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is the factor viewed as a function of b
conditioned on the given values.
LogAverageFactor(Gaussian, Gaussian)
Evidence message for EP.
Declaration
public static double LogAverageFactor(Gaussian Sum, Gaussian to_sum)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | Sum | Incoming message from |
Gaussian | to_sum | Outgoing message to |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(a) p(a) factor(difference,a,b))
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
LogAverageFactor(Double, Gaussian, Gaussian)
Evidence message for EP.
Declaration
public static double LogAverageFactor(double Sum, Gaussian a, Gaussian to_a)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Gaussian | a | Incoming message from |
Gaussian | to_a | Outgoing message to |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(difference) p(difference) factor(difference,a,b))
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
LogAverageFactor(Double, Double, Gaussian, Gaussian)
Evidence message for EP.
Declaration
public static double LogAverageFactor(double Sum, double a, Gaussian b, Gaussian to_b)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Double | a | Constant value for |
Gaussian | b | Incoming message from |
Gaussian | to_b | Outgoing message to |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(sum_(b) p(b) factor(difference,a,b))
.
LogAverageFactor(Double, Double, Double)
Evidence message for EP.
Declaration
public static double LogAverageFactor(double Sum, double a, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Double | a | Constant value for |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's average value across the given argument distributions. |
Remarks
The formula for the result is log(factor(difference,a,b))
.
SumAverageConditional(Gaussian, Gaussian)
EP message to a
.
Declaration
public static Gaussian SumAverageConditional(Gaussian a, Gaussian b)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | a | Incoming message from |
Gaussian | b | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
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_(difference,b) p(difference,b) factor(difference,a,b)]/p(a)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
ImproperMessageException |
|
SumAverageConditional(Gaussian, Double)
EP message to a
.
Declaration
public static Gaussian SumAverageConditional(Gaussian a, double b)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | a | Incoming message from |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
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_(difference) p(difference) factor(difference,a,b)]/p(a)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
SumAverageConditional(Double, Gaussian)
EP message to a
.
Declaration
public static Gaussian SumAverageConditional(double a, Gaussian b)
Parameters
Type | Name | Description |
---|---|---|
Double | a | Constant value for |
Gaussian | b | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
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_(b) p(b) factor(difference,a,b)]/p(a)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
SumAverageConditional(Double, Double)
EP message to a
.
Declaration
public static Gaussian SumAverageConditional(double a, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | a | Constant value for |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is the factor viewed as a function of a
conditioned on the given values.