Search Results for

    Show / Hide Table of Contents

    Struct Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedStateSet

    Represents a state of the resulting automaton in the power set construction. It is essentially a set of (stateId, weight) pairs of the source automaton, where each state id is unique. Supports a quick lookup of the weight by state id.

    Inherited Members
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: Microsoft.ML.Probabilistic.Distributions.Automata
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public struct WeightedStateSet

    Constructors

    WeightedStateSet(ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedState>)

    Declaration
    public WeightedStateSet(ReadOnlyArray<Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedState> weightedStates)
    Parameters
    Type Name Description
    ReadOnlyArray<Automaton.Determinization.WeightedState<>> weightedStates

    WeightedStateSet(Int32)

    Declaration
    public WeightedStateSet(int stateIndex)
    Parameters
    Type Name Description
    Int32 stateIndex

    Properties

    Count

    Declaration
    public readonly int Count { get; }
    Property Value
    Type Description
    Int32

    Item[Int32]

    Declaration
    public readonly Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedState this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    Automaton.Determinization.WeightedState<>

    Methods

    Equals(Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedStateSet)

    Checks whether this object is equal to a given one.

    Declaration
    public bool Equals(Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedStateSet that)
    Parameters
    Type Name Description
    Automaton.Determinization.WeightedStateSet<> that

    The object to compare this object with.

    Returns
    Type Description
    Boolean

    true if the objects are equal, false otherwise.

    Equals(Object)

    Checks whether this object is equal to a given one.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare this object with.

    Returns
    Type Description
    Boolean

    true if the objects are equal, false otherwise.

    Overrides
    ValueType.Equals(Object)

    GetHashCode()

    Computes the hash code of this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The computed hash code.

    Overrides
    ValueType.GetHashCode()
    Remarks

    Only state ids

    ToArray()

    Turns weighted state set into an array. This is convenient for writing LINQ queries in tests.

    Declaration
    public Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedState[] ToArray()
    Returns
    Type Description
    Automaton.Determinization.WeightedState<>[]

    ToString()

    Returns a string representation of the instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string representation of the instance.

    Overrides
    ValueType.ToString()
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.