Search Results for

    Show / Hide Table of Contents

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

    Builder for weighted sets.

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

    Methods

    Add(Int32, Weight)

    Declaration
    public void Add(int index, Weight weight)
    Parameters
    Type Name Description
    Int32 index
    Weight weight

    Create()

    Declaration
    public static Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedStateSetBuilder Create()
    Returns
    Type Description
    Automaton.Determinization.WeightedStateSetBuilder<>

    Get()

    Builds a Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedStateSet with normalized weights. Normalizer (max weight pre-normalization) is also returned.

    Internal state of builder is not mutated, it can be modified by Add()/Remove() calls to obtain new WeightedStateSets.

    Declaration
    public (Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TThis>.Determinization.WeightedStateSet, Weight) Get()
    Returns
    Type Description
    (T1, T2)<Automaton.Determinization.WeightedStateSet<>, Weight>

    Remove(Int32, Weight)

    Removes state that was previously added into this builder

    Declaration
    public void Remove(int index, Weight weight)
    Parameters
    Type Name Description
    Int32 index
    Weight weight

    StatesCount()

    Declaration
    public int StatesCount()
    Returns
    Type Description
    Int32
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.