Search Results for

    Show / Hide Table of Contents

    Class AutomatonBasedSequenceDistributionFormatBase

    A base class for implementations of ISequenceDistributionFormat that use IAutomatonFormat.

    Inheritance
    Object
    AutomatonBasedSequenceDistributionFormatBase
    SequenceDistributionFormatPointMassAsAutomaton
    SequenceDistributionFormatPointMassAsString
    Implements
    ISequenceDistributionFormat
    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.Distributions.Automata
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    public abstract class AutomatonBasedSequenceDistributionFormatBase : ISequenceDistributionFormat

    Constructors

    AutomatonBasedSequenceDistributionFormatBase(IAutomatonFormat)

    Initializes a new instance of the AutomatonBasedSequenceDistributionFormatBase class.

    Declaration
    protected AutomatonBasedSequenceDistributionFormatBase(IAutomatonFormat automatonFormat)
    Parameters
    Type Name Description
    IAutomatonFormat automatonFormat

    The underlying automaton format.

    Properties

    AutomatonFormat

    Gets the underlying automaton function format.

    Declaration
    public IAutomatonFormat AutomatonFormat { get; }
    Property Value
    Type Description
    IAutomatonFormat

    Methods

    ConvertPointMassToString<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton, TWeightFunction, TWeightFunctionFactory, TSequenceDistribution>(TSequenceDistribution)

    Overridden in the derived classes to convert a point mass sequence distribution to a string.

    Declaration
    protected abstract string ConvertPointMassToString<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton, TWeightFunction, TWeightFunctionFactory, TSequenceDistribution>(TSequenceDistribution sequenceDistribution)
        where TSequence : class, IEnumerable<TElement> where TElementDistribution : IImmutableDistribution<TElement, TElementDistribution>, CanGetLogAverageOf<TElementDistribution>, CanComputeProduct<TElementDistribution>, CanCreatePartialUniform<TElementDistribution>, SummableExactly<TElementDistribution>, Sampleable<TElement>, new()
        where TSequenceManipulator : ISequenceManipulator<TSequence, TElement>, new()
        where TAutomaton : Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton>, new()
        where TWeightFunction : WeightFunctions<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton>.IWeightFunction<TWeightFunction>, new()
        where TWeightFunctionFactory : WeightFunctions<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton>.IWeightFunctionFactory<TWeightFunction>, new()
        where TSequenceDistribution : SequenceDistribution<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton, TWeightFunction, TWeightFunctionFactory, TSequenceDistribution>, new()
    Parameters
    Type Name Description
    TSequenceDistribution sequenceDistribution

    The sequence distribution to convert to string.

    Returns
    Type Description
    String

    The string representation of the sequenceDistribution.

    Type Parameters
    Name Description
    TSequence

    The type of sequences sequenceDistribution is defined on.

    TElement

    The type of sequence elements of sequenceDistribution.

    TElementDistribution

    The type of distributions over sequence elements of sequenceDistribution.

    TSequenceManipulator

    The type providing ways to manipulate instances of TSequence.

    TAutomaton

    The type of automata used by sequenceDistribution.

    TWeightFunction

    The type of weight functions used by sequenceDistribution.

    TWeightFunctionFactory

    The type of weight function factory used by sequenceDistribution.

    TSequenceDistribution

    The concrete type of sequenceDistribution.

    ConvertToString<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton, TWeightFunction, TWeightFunctionFactory, TSequenceDistribution>(TSequenceDistribution)

    Uses AutomatonFormat on the weight function of sequenceDistribution, or calls ConvertPointMassToString<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton, TWeightFunction, TWeightFunctionFactory, TSequenceDistribution>(TSequenceDistribution) if the distribution is a point mass.

    Declaration
    public string ConvertToString<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton, TWeightFunction, TWeightFunctionFactory, TSequenceDistribution>(TSequenceDistribution sequenceDistribution)
        where TSequence : class, IEnumerable<TElement> where TElementDistribution : IImmutableDistribution<TElement, TElementDistribution>, CanGetLogAverageOf<TElementDistribution>, CanComputeProduct<TElementDistribution>, CanCreatePartialUniform<TElementDistribution>, SummableExactly<TElementDistribution>, Sampleable<TElement>, new()
        where TSequenceManipulator : ISequenceManipulator<TSequence, TElement>, new()
        where TAutomaton : Automaton<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton>, new()
        where TWeightFunction : WeightFunctions<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton>.IWeightFunction<TWeightFunction>, new()
        where TWeightFunctionFactory : WeightFunctions<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton>.IWeightFunctionFactory<TWeightFunction>, new()
        where TSequenceDistribution : SequenceDistribution<TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton, TWeightFunction, TWeightFunctionFactory, TSequenceDistribution>, new()
    Parameters
    Type Name Description
    TSequenceDistribution sequenceDistribution

    The sequence distribution to convert to string.

    Returns
    Type Description
    String

    The string representation of the sequenceDistribution.

    Type Parameters
    Name Description
    TSequence

    The type of sequences sequenceDistribution is defined on.

    TElement

    The type of sequence elements of sequenceDistribution.

    TElementDistribution

    The type of distributions over sequence elements of sequenceDistribution.

    TSequenceManipulator

    The type providing ways to manipulate instances of TSequence.

    TAutomaton

    The type of automata used by sequenceDistribution.

    TWeightFunction

    The type of weight functions used by sequenceDistribution.

    TWeightFunctionFactory

    The type of weight function factory used by sequenceDistribution.

    TSequenceDistribution

    The concrete type of sequenceDistribution.

    Implements

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