GH_MarkovPattern

References
Represents a Markov chain pattern and associated outcomes.

Constructors

GH_MarkovPattern

#
public GH_MarkovPattern()

GH_MarkovPattern

#
public GH_MarkovPattern(GH_MarkovPattern other)
other (GH_MarkovPattern)

GH_MarkovPattern

#
public GH_MarkovPattern(params Guid[] pat)
pat (params Guid[])

Properties

Depth

#
public int Depth { get; }
Gets the depth this pattern as implied by the pattern length.

IsInsignificant

#
public bool IsInsignificant { get; }
Gets a value indicating whether or not this pattern is insignificant in the grand scheme of things.

MaximumValence

#
public long MaximumValence { get; }
Gets the highest outcome valence in this pattern.

Outcomes

#
public List<GH_MarkovOutcome> Outcomes { get; }
Gets all the outcomes associated with this pattern.

Pattern

#
public Guid[] Pattern { get; }
Gets the pattern of GUIDs.

Methods

AppendOutcome

#
public void AppendOutcome(GH_MarkovOutcome outcome)
Append a new outcome to this pattern or increment an existing outcome.
outcome (GH_MarkovOutcome)Outcome to increment or append.

AppendOutcome

#
public void AppendOutcome(Guid id)
Append a new outcome to this pattern or increment an existing outcome.
id (Guid)ID of outcome to increment or append.

CompareTo

#
public int CompareTo(GH_MarkovPattern other)
other (GH_MarkovPattern)

RemoveInsignificantOutcomes

#
public void RemoveInsignificantOutcomes()
Remove all insignificant outcomes from this pattern.

Simplify

#
public void Simplify()
Simplify this pattern by removing the least significant outcomes.