C# Class Segmenter.Model.Criterion.CriterionPartialOrlov

A partial Orlov's criterion. Find the difference between the theoretical and practical power of the alphabet
Inheritance: Criterion
显示文件 Open project: intervals-mining-lab/libiada-core

Public Methods

Method Description
CalculateB ( double k, double f1 ) : double

The calculate b.

CalculateK ( int factFrequency, int length ) : double

The calculate k.

CriterionPartialOrlov ( ThresholdVariator threshold, double precision ) : System

Initializes a new instance of the CriterionPartialOrlov class.

Distortion ( ComplexChain chain, FrequencyDictionary alphabet ) : double

The distortion.

Frequency ( ComplexChain chain, string word ) : double

The frequency.

Frequency ( IEnumerable c, object o ) : int

The frequency.

State ( ComplexChain chain, FrequencyDictionary alphabet ) : bool

The state.

TheoryFrequency ( int rank, double b, double k ) : double

The theory frequency.

TheoryVolume ( ComplexChain chain, FrequencyDictionary alphabet ) : double

Calculates the theoretical volume the alphabet for a chain.

Private Methods

Method Description
Update ( ComplexChain chain, FrequencyDictionary alphabet ) : void

The update.

Method Details

CalculateB() public method

The calculate b.
public CalculateB ( double k, double f1 ) : double
k double /// The k. ///
f1 double /// The f 1. ///
return double

CalculateK() public method

The calculate k.
public CalculateK ( int factFrequency, int length ) : double
factFrequency int /// The fact frequency. ///
length int /// The length. ///
return double

CriterionPartialOrlov() public method

Initializes a new instance of the CriterionPartialOrlov class.
public CriterionPartialOrlov ( ThresholdVariator threshold, double precision ) : System
threshold Segmenter.Model.Threshold.ThresholdVariator /// The rule for handle a threshold value. ///
precision double /// The additional value. ///
return System

Distortion() public final method

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

Frequency() public method

The frequency.
public Frequency ( ComplexChain chain, string word ) : double
chain Segmenter.Base.Sequences.ComplexChain /// The chain. ///
word string /// The word. ///
return double

Frequency() public method

The frequency.
public Frequency ( IEnumerable c, object o ) : int
c IEnumerable /// The c. ///
o object /// The o. ///
return int

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

TheoryFrequency() public method

The theory frequency.
public TheoryFrequency ( int rank, double b, double k ) : double
rank int /// The rank. ///
b double /// The b. ///
k double /// The k. ///
return double

TheoryVolume() public method

Calculates the theoretical volume the alphabet for a chain.
public TheoryVolume ( ComplexChain chain, FrequencyDictionary alphabet ) : double
chain Segmenter.Base.Sequences.ComplexChain /// An estimated chain. ///
alphabet Segmenter.Base.Collectors.FrequencyDictionary /// Current alphabet. ///
return double