Search Results for

    Show / Hide Table of Contents

    Class GetJaggedItemsFromJaggedPointOp<T>

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

    Inheritance
    Object
    GetJaggedItemsFromJaggedPointOp<T>
    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(Collection), "GetJaggedItemsFromJagged<>", new Type[]{}, Default = false)]
    [Quality(QualityBand.Experimental)]
    public static class GetJaggedItemsFromJaggedPointOp<T>
    Type Parameters
    Name Description
    T

    The type of an item.

    Methods

    ItemsAverageConditional<ItemType, DistributionType>(IList<ItemType>, IList<IList<Int32>>, IList<IList<Int32>>, Int32, ItemType)

    EP message to items.

    Declaration
    public static ItemType ItemsAverageConditional<ItemType, DistributionType>([SkipIfAllUniform] IList<ItemType> array, IList<IList<int>> indices, IList<IList<int>> indices2, int resultIndex, ItemType result)
        where ItemType : IList<DistributionType> where DistributionType : SettableTo<DistributionType>
    Parameters
    Type Name Description
    IList<ItemType> array

    Incoming message from array. Must be a proper distribution. If all elements are uniform, the result will be uniform.

    IList<IList<Int32>> indices

    Incoming message from indices.

    IList<IList<Int32>> indices2

    Incoming message from indices2.

    Int32 resultIndex

    Index of the items for which a message is desired.

    ItemType result

    Modified to contain the outgoing message.

    Returns
    Type Description
    ItemType

    result

    Type Parameters
    Name Description
    ItemType

    The type of a sub-array.

    DistributionType

    The type of a distribution over array elements.

    Remarks

    The outgoing message is a distribution matching the moments of items as the random arguments are varied. The formula is proj[p(items) sum_(array,indices,indices2) p(array,indices,indices2) factor(items,array,indices,indices2)]/p(items).

    Exceptions
    Type Condition
    ImproperMessageException

    array is not a proper distribution.

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