Struct Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.EpsilonClosure
Represents the epsilon closure of a state.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Distributions.Automata
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public struct EpsilonClosure
Properties
EndWeight
Gets the total weight for ending inside the closure, if following epsilon transitions only
Declaration
public readonly Weight EndWeight { get; }
Property Value
Type | Description |
---|---|
Weight |
Size
Gets the number of states in the closure.
Declaration
public readonly int Size { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
GetStateByIndex(Int32)
Gets a state by its index.
Declaration
public Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.State GetStateByIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. Must be non-negative and less than Size. |
Returns
Type | Description |
---|---|
Automaton.State<> | The state with the specified index. |
GetStateWeightByIndex(Int32)
Gets the total weight of all the paths from the root to the state with a given index, if following epsilon transitions only.
Declaration
public Weight GetStateWeightByIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. Must be non-negative and less than Size. |
Returns
Type | Description |
---|---|
Weight | The weight. |