C# Class 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.
Inheritance: Criterion
显示文件 Open project: intervals-mining-lab/libiada-core

Public Methods

Method Description
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.

Private Methods

Method Description
MaxFrequency ( FrequencyDictionary alphabet ) : int

The max frequency.

Method Details

CriterionGoldenRatio() public method

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. ///
return System

Distortion() public method

The distortion.
public Distortion ( ComplexChain chain, FrequencyDictionary alphabet ) : double
chain Segmenter.Base.Sequences.ComplexChain /// The chain. ///
alphabet Segmenter.Base.Collectors.FrequencyDictionary /// The alphabet. ///
return double

State() public method

The state.
public State ( ComplexChain chain, FrequencyDictionary alphabet ) : bool
chain Segmenter.Base.Sequences.ComplexChain /// The chain. ///
alphabet Segmenter.Base.Collectors.FrequencyDictionary /// The alphabet. ///
return bool