GH_MarkovChain

References
public class GH_MarkovChain
Represents a database with multi-depth markov chains.

Constructors

GH_MarkovChain

#
public GH_MarkovChain()

Properties

Level1

#
public List<GH_MarkovPattern> Level1 { get; }
Gets all level 1 patterns stored in this chain database.

Level2

#
public List<GH_MarkovPattern> Level2 { get; }
Gets all level 2 patterns stored in this chain database.

Level3

#
public List<GH_MarkovPattern> Level3 { get; }
Gets all level 3 patterns stored in this chain database.

PatternCount

#
public int PatternCount { get; }
Gets the total number of patterns stored in this database.

Methods

AppendPattern

#
public void AppendPattern(GH_MarkovPattern pattern)
Append a new pattern to the database or grow a pattern which already exists.
pattern (GH_MarkovPattern)Pattern to incorporate.

Clear

#
public void Clear()
Reset the markov database.

Description

#
public string Description()
Gets a description of the entire Markov database.

ExtendHistory

#
public void ExtendHistory(Guid new_id)
Append a new ID to the history record and cache the implied pattern.
new_id (Guid)Most recent ID in history.

FindPattern

#
public GH_MarkovPattern FindPattern(Guid id)
Finds the pattern in the level 1 chain that matches the given ID.
id (Guid)

FindPattern

#
public GH_MarkovPattern FindPattern(Guid id1, Guid id2, Guid id3)
Finds the pattern in the level 3 chain that matches the given ID.
id1 (Guid)
id2 (Guid)
id3 (Guid)

FindPattern

#
public GH_MarkovPattern FindPattern(Guid id1, Guid id2)
Finds the pattern in the level 2 chain that matches the given ID.
id1 (Guid)
id2 (Guid)

ReadFromDisc

#
public void ReadFromDisc()
Read the markov database from the disc.

ReduceDataset

#
public void ReduceDataset()
Reduce the data set by removing the least significant members.

SuggestEvents

#
public Guid[] SuggestEvents()
Suggests the likely future events based on the past three events and the recorded history. Events are returned in order of likelyhood.

WriteToDisc

#
public void WriteToDisc()
Write the Markov database to disc.