Esempio n. 1
0
                /// <inheritdoc/>
                public MultiRepresentationWeightFunction <TDictionary> ConstantLog(double logValue, TElementDistribution allowedElements)
                {
                    if (double.IsNegativeInfinity(allowedElements.GetLogAverageOf(allowedElements)))
                    {
                        return(Zero());
                    }
                    var automaton = Automaton <TSequence, TElement, TElementDistribution, TSequenceManipulator, TAutomaton> .ConstantLog(logValue, allowedElements);

                    return(FromAutomaton(automaton));
                }