Class UsesEqualDefGibbsOp<T>
Provides outgoing messages for UsesEqualDef<T>(T, Int32, out T), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Clone), "UsesEqualDef<>", new Type[]{})]
[Quality(QualityBand.Mature)]
public static class UsesEqualDefGibbsOp<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the variable. |
Methods
DefGibbs<TDist>(GibbsMarginal<TDist, T>, T)
Declaration
public static T DefGibbs<TDist>(GibbsMarginal<TDist, T> to_marginal, T result)
where TDist : IDistribution<T>, Sampleable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| GibbsMarginal<TDist, T> | to_marginal | Previous outgoing message to |
| T | result | Modified to contain the outgoing message. |
Returns
| Type | Description |
|---|---|
| T |
|
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
Remarks
DefGibbs<TDist>(IReadOnlyList<TDist>, TDist)
Declaration
public static TDist DefGibbs<TDist>([SkipIfAllUniform] IReadOnlyList<TDist> Uses, TDist result)
where TDist : IDistribution<T>, Sampleable<T>, SettableTo<TDist>, SettableToProduct<TDist>, SettableToRatio<TDist>
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<TDist> | Uses | |
| TDist | result |
Returns
| Type | Description |
|---|---|
| TDist |
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
GibbsEvidence<TDist>(IList<TDist>, TDist, GibbsMarginal<TDist, T>)
Declaration
public static double GibbsEvidence<TDist>(IList<TDist> Uses, TDist Def, GibbsMarginal<TDist, T> to_marginal)
where TDist : IDistribution<T>, Sampleable<T>, CanGetLogAverageOf<TDist>, SettableTo<TDist>, SettableToProduct<TDist>
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TDist> | Uses | Incoming message from |
| TDist | Def | Incoming message from |
| GibbsMarginal<TDist, T> | to_marginal | Previous outgoing message to |
Returns
| Type | Description |
|---|---|
| Double |
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
Remarks
MarginalGibbs<TDist>(IList<T>, TDist, GibbsMarginal<TDist, T>)
Declaration
public static GibbsMarginal<TDist, T> MarginalGibbs<TDist>(IList<T> Uses, TDist Def, GibbsMarginal<TDist, T> to_marginal)
where TDist : IDistribution<T>, SettableToProduct<TDist>, SettableToRatio<TDist>, SettableTo<TDist>, Sampleable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| IList<T> | Uses | Incoming message from |
| TDist | Def | Incoming message from |
| GibbsMarginal<TDist, T> | to_marginal | Previous outgoing message to |
Returns
| Type | Description |
|---|---|
| GibbsMarginal<TDist, T> |
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
Remarks
MarginalGibbs<TDist>(IReadOnlyList<TDist>, TDist, GibbsMarginal<TDist, T>)
Declaration
public static GibbsMarginal<TDist, T> MarginalGibbs<TDist>(IReadOnlyList<TDist> Uses, TDist Def, GibbsMarginal<TDist, T> to_marginal)
where TDist : IDistribution<T>, SettableToProduct<TDist>, SettableToRatio<TDist>, SettableTo<TDist>, Sampleable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<TDist> | Uses | |
| TDist | Def | |
| GibbsMarginal<TDist, T> | to_marginal |
Returns
| Type | Description |
|---|---|
| GibbsMarginal<TDist, T> |
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
MarginalGibbs<TDist>(IReadOnlyList<TDist>, T, GibbsMarginal<TDist, T>)
Declaration
public static GibbsMarginal<TDist, T> MarginalGibbs<TDist>(IReadOnlyList<TDist> Uses, T Def, GibbsMarginal<TDist, T> to_marginal)
where TDist : IDistribution<T>, SettableToProduct<TDist>, SettableToRatio<TDist>, SettableTo<TDist>, Sampleable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<TDist> | Uses | |
| T | Def | |
| GibbsMarginal<TDist, T> | to_marginal |
Returns
| Type | Description |
|---|---|
| GibbsMarginal<TDist, T> |
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
MarginalGibbsInit<TDist>(TDist)
Declaration
public static GibbsMarginal<TDist, T> MarginalGibbsInit<TDist>(TDist Def)
where TDist : IDistribution<T>, Sampleable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| TDist | Def | Incoming message from |
Returns
| Type | Description |
|---|---|
| GibbsMarginal<TDist, T> |
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
Remarks
UsesGibbs<TDist>(GibbsMarginal<TDist, T>, Int32, T)
Declaration
public static T UsesGibbs<TDist>(GibbsMarginal<TDist, T> to_marginal, int resultIndex, T result)
where TDist : IDistribution<T>, Sampleable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| GibbsMarginal<TDist, T> | to_marginal | Previous outgoing message to |
| Int32 | resultIndex | Index of the |
| T | result | Modified to contain the outgoing message. |
Returns
| Type | Description |
|---|---|
| T |
|
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
Remarks
UsesGibbs<TDist>(ICollection<TDist>, TDist, Int32, TDist)
Declaration
public static TDist UsesGibbs<TDist>(ICollection<TDist> Uses, TDist Def, int resultIndex, TDist result)
where TDist : IDistribution<T>, Sampleable<T>, SettableTo<TDist>, SettableToProduct<TDist>, SettableToRatio<TDist>
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection<TDist> | Uses | Incoming message from |
| TDist | Def | Incoming message from |
| Int32 | resultIndex | Index of the |
| TDist | result | Modified to contain the outgoing message. |
Returns
| Type | Description |
|---|---|
| TDist |
|
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable. |
Remarks
UsesGibbsInit<TArrayType, TDef>(TDef, Int32, IArrayFactory<TDef, TArrayType>)
Declaration
public static TArrayType UsesGibbsInit<TArrayType, TDef>(TDef Def, int count, IArrayFactory<TDef, TArrayType> factory)
where TDef : ICloneable
Parameters
| Type | Name | Description |
|---|---|---|
| TDef | Def | Incoming message from |
| Int32 | count | Constant value for |
| IArrayFactory<TDef, TArrayType> | factory |
Returns
| Type | Description |
|---|---|
| TArrayType |
Type Parameters
| Name | Description |
|---|---|
| TArrayType | The type of arrays produced by |
| TDef | The type of the incoming message from |
Remarks