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

The criterion of break. Defines the best mode of segmentation. Allows you to handle how long will the process do something.
Наследование: IDefinable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
ThresholdToStop ThresholdVariator
alphabet FrequencyDictionary
chain ComplexChain
precisionOfDifference double

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

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

Initializes a new instance of the Criterion class.

Distortion ( ) : double

Returns distortion between necessary and calculated value inside of criterion. For example between theoretical and practical values.

Distortion ( ComplexChain chain, FrequencyDictionary alphabet ) : double

Returns distortion between necessary and calculated value. For example between theoretical and practical values.

GetValue ( ) : double

The get value.

Renew ( ComplexChain chain, FrequencyDictionary alphabet ) : void

Updates data for computing a new value of the criterion.

State ( ComplexChain chain, FrequencyDictionary alphabet ) : bool

Returns the state of criterion. True, if everything is done, false - otherwise.

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

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

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

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

Returns distortion between necessary and calculated value inside of criterion. For example between theoretical and practical values.
public Distortion ( ) : double
Результат double

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

Returns distortion between necessary and calculated value. For example between theoretical and practical values.
public abstract Distortion ( ComplexChain chain, FrequencyDictionary alphabet ) : double
chain ComplexChain /// The chain. ///
alphabet FrequencyDictionary /// The alphabet. ///
Результат double

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

The get value.
public GetValue ( ) : double
Результат double

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

Updates data for computing a new value of the criterion.
public Renew ( ComplexChain chain, FrequencyDictionary alphabet ) : void
chain ComplexChain /// A new chain. ///
alphabet FrequencyDictionary /// A new alphabet. ///
Результат void

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

Returns the state of criterion. True, if everything is done, false - otherwise.
public abstract State ( ComplexChain chain, FrequencyDictionary alphabet ) : bool
chain ComplexChain /// The chain. ///
alphabet FrequencyDictionary /// Chains alphabet. ///
Результат bool

Описание свойств

ThresholdToStop защищенное свойство

The threshold to stop.
protected ThresholdVariator ThresholdToStop
Результат ThresholdVariator

alphabet защищенное свойство

The alphabet.
protected FrequencyDictionary alphabet
Результат FrequencyDictionary

chain защищенное свойство

The chain.
protected ComplexChain chain
Результат ComplexChain

precisionOfDifference защищенное свойство

The precision of difference.
protected double precisionOfDifference
Результат double