Class ReplicateOp_Divide
Provides outgoing messages for Replicate<T>(T, Int32), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Clone), "Replicate<>", new Type[]{}, Default = true)]
[Buffers(new string[]{"marginal", "toDef"})]
[Quality(QualityBand.Mature)]
public static class ReplicateOp_Divide
Methods
DefAverageConditional<T>(T, T)
EP message to Def
.
Declaration
public static T DefAverageConditional<T>(T toDef, T result)
where T : SettableTo<T>
Parameters
Type | Name | Description |
---|---|---|
T | toDef | Buffer |
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.
Marginal<T>(T, T, T)
Update the buffer marginal
.
Declaration
[SkipIfAllUniform]
public static T Marginal<T>(T toDef, T Def, T result)
where T : SettableToProduct<T>
Parameters
Type | Name | Description |
---|---|---|
T | toDef | Buffer |
T | Def | Incoming message from |
T | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
T |
|
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
Remarks
MarginalIncrement<T>(T, T, T)
Declaration
[SkipIfAllUniform]
public static T MarginalIncrement<T>(T result, T def, T use)
where T : SettableToProduct<T>
Parameters
Type | Name | Description |
---|---|---|
T | result | Modified to contain the outgoing message. |
T | def | Incoming message from |
T | use |
Returns
Type | Description |
---|---|
T |
|
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
Remarks
MarginalInit<T>(T)
Initialize the buffer marginal
.
Declaration
public static T MarginalInit<T>(T Def)
where T : ICloneable
Parameters
Type | Name | Description |
---|---|---|
T | Def | Incoming message from |
Returns
Type | Description |
---|---|
T | Initial value of buffer |
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
Remarks
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
ToDef<T>(IReadOnlyList<T>, T)
Declaration
[SkipIfAllUniform]
public static T ToDef<T>(IReadOnlyList<T> Uses, T result)
where T : SettableToProduct<T>, SettableTo<T>, SettableToUniform
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<T> | Uses | |
T | result |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
ToDefInit<T>(T)
Initialize the buffer toDef
.
Declaration
public static T ToDefInit<T>(T Def)
where T : ICloneable, SettableToUniform
Parameters
Type | Name | Description |
---|---|---|
T | Def | Incoming message from |
Returns
Type | Description |
---|---|
T | Initial value of buffer |
Type Parameters
Name | Description |
---|---|
T | The type of the messages. |
Remarks
UsesAverageConditional<T>(T, T, Int32, T)
EP message to Uses
.
Declaration
public static T UsesAverageConditional<T>(T Uses, T marginal, int resultIndex, T result)
where T : SettableToRatio<T>
Parameters
Type | Name | Description |
---|---|---|
T | Uses | Incoming message from |
T | marginal | Buffer |
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.