C# Класс Segmenter.Model.Criterion.CriterionGoldenRatio

The criterion of "golden ratio". The basis is the standard law of the golden ratio, where most of the - power of the alphabet and less - the maximum frequency of the word.
Наследование: Criterion
Показать файл Открыть проект

Открытые методы

Метод Описание
CriterionGoldenRatio ( ThresholdVariator threshold, double precision ) : System

Initializes a new instance of the CriterionGoldenRatio class.

Distortion ( ComplexChain chain, FrequencyDictionary alphabet ) : double

The distortion.

State ( ComplexChain chain, FrequencyDictionary alphabet ) : bool

The state.

Приватные методы

Метод Описание
MaxFrequency ( FrequencyDictionary alphabet ) : int

The max frequency.

Описание методов

CriterionGoldenRatio() публичный Метод

Initializes a new instance of the CriterionGoldenRatio class.
public CriterionGoldenRatio ( ThresholdVariator threshold, double precision ) : System
threshold Segmenter.Model.Threshold.ThresholdVariator /// A rule for handling a threshold value. ///
precision double /// Additional value to. ///
Результат System

Distortion() публичный Метод

The distortion.
public Distortion ( ComplexChain chain, FrequencyDictionary alphabet ) : double
chain Segmenter.Base.Sequences.ComplexChain /// The chain. ///
alphabet Segmenter.Base.Collectors.FrequencyDictionary /// The alphabet. ///
Результат double

State() публичный Метод

The state.
public State ( ComplexChain chain, FrequencyDictionary alphabet ) : bool
chain Segmenter.Base.Sequences.ComplexChain /// The chain. ///
alphabet Segmenter.Base.Collectors.FrequencyDictionary /// The alphabet. ///
Результат bool