Search Results for

    Show / Hide Table of Contents

    Class ReplicateBufferOp

    Provides outgoing messages for ReplicateWithMarginal<T>(T, Int32, out T), given random arguments to the function.

    Inheritance
    Object
    ReplicateBufferOp
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Factors
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    [FactorMethod(typeof(Clone), "ReplicateWithMarginal<>", new Type[]{}, Default = true)]
    [Quality(QualityBand.Preview)]
    public static class ReplicateBufferOp

    Methods

    UsesAverageConditional<T>(T[], T, T, Int32, T)

    EP message to Uses.

    Declaration
    public static T UsesAverageConditional<T>(T[] Uses, T Def, T to_marginal, int resultIndex, T result)
        where T : SettableToRatio<T>, SettableToProduct<T>, SettableTo<T>
    Parameters
    Type Name Description
    T[] Uses

    Incoming message from Uses.

    T Def

    Incoming message from Def. Must be a proper distribution. If uniform, the result will be uniform.

    T to_marginal

    Outgoing message to marginal.

    Int32 resultIndex

    Index of the Uses for which a message is desired.

    T result

    Modified to contain the outgoing message.

    Returns
    Type Description
    T

    result

    Type Parameters
    Name Description
    T

    The type of the distribution over the replicated variable.

    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,Marginal)]/p(Uses).

    Exceptions
    Type Condition
    ImproperMessageException

    Def is not a proper distribution.

    UsesAverageConditional<T>(IReadOnlyList<T>, T, T, Int32, T)

    Declaration
    public static T UsesAverageConditional<T>(IReadOnlyList<T> Uses, T Def, T to_marginal, int resultIndex, T result)
        where T : SettableToRatio<T>, SettableToProduct<T>, SettableTo<T>
    Parameters
    Type Name Description
    IReadOnlyList<T> Uses
    T Def
    T to_marginal
    Int32 resultIndex
    T result
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    The type of the distribution over the replicated variable.

    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.