C# Class BuildingsIterator.ScramblingGenerator

Генерирует все возможные сочетания.
ファイルを表示 Open project: intervals-mining-lab/libiada-core

Public Methods

Method Description
Generate ( Alphabet alphabet, int length, List characteristic ) : ChainPicksWithCharacteristics

Generates hashtable with all possible combinations as keys and characteristics list as values.

Private Methods

Method Description
CalculateCharacteristics ( Chain chain, List characteristic ) : List

The calculate characteristics.

GenerateChain ( Alphabet alphabet, int i, int length ) : Chain

The generate chain.

Method Details

Generate() public method

Generates hashtable with all possible combinations as keys and characteristics list as values.
public Generate ( Alphabet alphabet, int length, List characteristic ) : ChainPicksWithCharacteristics
alphabet Alphabet /// Alphabet for generated sequences. ///
length int /// Length of generated sequences. ///
characteristic List /// Calculated characteristics. ///
return ChainPicksWithCharacteristics