Example #1
0
        public INGrams <T> UpdateSentenceTextBox()
        {
            var chain = RetrieveChain();

            this.sentenceTextBox.Text = NGramHelper.ShowNGram(chain);

            return(HomogenousNGrams <T> .DirectBuiltUnsafe(chain, chain.First().N));
        }
Example #2
0
 private void AddItemsToListBoxFromGenetic(IReadOnlyList <GeneticAlgorithm <NGram <Chord>[]> .Individual> readOnlyList)
 {
     this.songListBox.Invoke((Action)(() => this.songListBox.Items.AddRange(readOnlyList.Select(x => (object)(new GeneticIndividualUIElement <NGram <Chord>[]>(x.Value, NGramHelper.ShowNGram(x.Value)))).ToArray())));
 }