Class ReplicateOp_NoDivide
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(Clone), "Replicate<>", new Type[]{}, Default = false)]
[FactorMethod(typeof(Clone), "ReplicateWithMarginal<>", new Type[]{}, Default = false)]
[Quality(QualityBand.Mature)]
public static class ReplicateOp_NoDivide
Methods
DefAverageConditional<T>(T[], T)
EP message to Def.
Declaration
public static T DefAverageConditional<T>([SkipIfAllUniform] T[] Uses, T result)
where T : SettableToProduct<T>, SettableTo<T>, SettableToUniform
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | Uses | 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
The outgoing message is a distribution matching the moments of Def as the random arguments are varied. The formula is proj[p(Def) sum_(Uses) p(Uses) factor(Uses,Def,Count)]/p(Def).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|
DefAverageConditional<T>(IReadOnlyList<T>, T)
Declaration
public static T DefAverageConditional<T>([SkipIfAllUniform] 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. |
MarginalAverageConditional<T>(T[], T, T)
Declaration
[SkipIfAllUniform]
public static T MarginalAverageConditional<T>(T[] Uses, T Def, T result)
where T : SettableToProduct<T>, SettableTo<T>
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | Uses | Incoming message from |
| 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
MarginalAverageConditional<T>(IReadOnlyList<T>, T, T)
Declaration
[SkipIfAllUniform]
public static T MarginalAverageConditional<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. |
UsesAverageConditional<T>(T[], T, Int32, T)
EP message to Uses.
Declaration
[SkipIfAllUniform]
public static T UsesAverageConditional<T>(T[] Uses, T Def, int resultIndex, T result)
where T : SettableToProduct<T>, SettableTo<T>
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | Uses | Incoming message from |
| T | Def | Incoming message from |
| 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 a distribution matching the moments of Uses as the random arguments are varied. The formula is proj[p(Uses) sum_(Def) p(Def) factor(Uses,Def,Count)]/p(Uses).
UsesAverageConditional<T>(IReadOnlyList<T>, T, Int32, T)
Declaration
[SkipIfAllUniform]
public static T UsesAverageConditional<T>(IReadOnlyList<T> Uses, T Def, int resultIndex, T result)
where T : SettableToProduct<T>, SettableTo<T>
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<T> | Uses | |
| T | Def | |
| Int32 | resultIndex | |
| T | result |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the messages. |