Class BufferTesterCopyOp
Provides outgoing messages for Microsoft.ML.Probabilistic.Factors.BufferTester.Copy``1(``0), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(BufferTester), "Copy<>", new Type[]{})]
[Buffers(new string[]{"buffer"})]
[Quality(QualityBand.Experimental)]
public static class BufferTesterCopyOp
Methods
Buffer<T>(T, T, T)
Update the buffer buffer.
Declaration
public static T Buffer<T>(T copy, T value, T result)
Parameters
| Type | Name | Description |
|---|---|---|
| T | copy | Incoming message from |
| T | value | Incoming message from |
| T | result | Modified to contain the outgoing message. |
Returns
| Type | Description |
|---|---|
| T |
|
Type Parameters
| Name | Description |
|---|---|
| T | The type of the value. |
Remarks
BufferInit<T>(T)
Initialize the buffer buffer.
Declaration
public static T BufferInit<T>(T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Incoming message from |
Returns
| Type | Description |
|---|---|
| T | Initial value of buffer |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the value. |
Remarks
CopyAverageConditional<T>(T, T)
EP message to copy.
Declaration
public static T CopyAverageConditional<T>(T value, T buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | Incoming message from |
| T | buffer | Buffer |
Returns
| Type | Description |
|---|---|
| T | The outgoing EP message to the |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the value. |
Remarks
The outgoing message is a distribution matching the moments of copy as the random arguments are varied. The formula is proj[p(copy) sum_(value) p(value) factor(copy,value)]/p(copy).
ValueAverageConditional<T>(T)
EP message to value.
Declaration
public static T ValueAverageConditional<T>(T copy)
Parameters
| Type | Name | Description |
|---|---|---|
| T | copy | Incoming message from |
Returns
| Type | Description |
|---|---|
| T | The outgoing EP message to the |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the value. |
Remarks
The outgoing message is a distribution matching the moments of value as the random arguments are varied. The formula is proj[p(value) sum_(copy) p(copy) factor(copy,value)]/p(value).