GH_MarkovChain

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

Constructors

GH_MarkovChain

#
public GH_MarkovChain()

Properties

Level1

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

Level2

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

Level3

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

PatternCount

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

Methods

AppendPattern

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

Clear

#
Reset the markov database.
public void Clear()

Description

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

ExtendHistory

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

FindPattern

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

FindPattern

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

FindPattern

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

ReadFromDisc

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

ReduceDataset

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

SuggestEvents

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

WriteToDisc

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