Adds an edge from a gram to the items before and after it in the sequence.
The id of a gram, or the gram sequence.
The id of the previous gram in the sequence.
The id of the next gram in the sequence.
The order of the Gram we're adding.
Adds or inserts a Sequence into a Markov Chain DTO.
The sequence to be added.
Determines how sequences should be inserted. If false, delimiters will be prepended and appended to the sequences. "start" or setting true will only prepend the start delimiter, while "end" will append the end delimiter. "middle" will not add any delimiters.
Adds or inserts a list of Sequences into a Markov Chain DTO.
The sequences to be added.
Determines how sequences should be inserted. If false, delimiters will be prepended and appended to the sequences. "start" or setting true will only prepend the start delimiter, while "end" will append the end delimiter. "middle" will not add any delimiters.
Analyze's a sequences sources and sinks. Generates a number of samples from a given gram sequence, and gives the resulting distribution of where the generated sequences terminated both backwards (sources) and forwards (sinks).
Ceates a clone of the Markov Chain.
If true this will strip out the sequences, removing the chain's source data.
Finds the valid gram of the highest valid order in a sequence.
An array containing the Gram sequence.
The highest order to look for.
The direction we are looking for sequences in. "next" will look for grams at the end of the sequence. "last" will look for grams at the beginning of the sequence.
Generates a sequence from a Markov Chain.
Returns the corresponding Gram from a sequence.
An array containing the Gram sequence.
Returns the id of a Gram from its sequence.
An array containing the Gram sequence.
Picks the last random value from a Markov Chain given a sequence.
The starting Gram sequence. If this isn't supplied this defaults to the start.
A mask containing keys in the chain that should be ignored.
Picks the next random value from a Markov Chain given a sequence.
The starting Gram sequence. If this isn't supplied this defaults to the start.
A mask containing keys in the chain that should be ignored.
Picks the next or last random value from a Markov Chain.
The starting Gram sequence. If this isn't supplied this defaults to the start.
If true states that come after the gram will be picked. If false states that came before the gram will be picked.
A mask containing keys in the chain that should be ignored.
Serializes a Markov Chain instance into a DTO.
If true this will strip out the sequences, removing the chain's source data.
Updates a Markov Chain's members from a DTO.
Adds an edge from a gram to the items before and after it in the sequence.
A Markov Chain data transfer object.
The id of a gram, or the gram sequence.
The id of the previous gram in the sequence.
The id of the next gram in the sequence.
The order of the Gram we're adding.
Adds or inserts a Sequence into a Markov Chain DTO.
A Markov Chain data transfer object.
The sequence to be added.
Determines how sequences should be inserted. If false, delimiters will be prepended and appended to the sequences. "start" or setting true will only prepend the start delimiter, while "end" will append the end delimiter. "middle" will not add any delimiters.
Adds or inserts a list of Sequences into a Markov Chain DTO.
A Markov Chain data transfer object.
The sequences to be added.
Determines how sequences should be inserted. If false, delimiters will be prepended and appended to the sequences. "start" or setting true will only prepend the start delimiter, while "end" will append the end delimiter. "middle" will not add any delimiters.
Analyze's a sequences sources and sinks. Generates a number of samples from a given gram sequence, and gives the resulting distribution of where the generated sequences terminated both backwards (sources) and forwards (sinks).
Create a deep copy of a Markov Chain DTO.
Markov DTO to clone.
If true this will strip out the sequences, removing the chain's source data.
Finds the valid gram of the highest valid order in a sequence.
A Markov Chain data transfer object.
An array containing the Gram sequence.
The highest order to look for.
The direction we are looking for sequences in. "next" will look for grams at the end of the sequence. "last" will look for grams at the beginning of the sequence.
Generates a sequence from a Markov Chain.
Returns the corresponding Gram from a sequence.
A Markov Chain data transfer object.
An array containing the Gram sequence.
Returns the id of a Gram from its sequence.
A Markov Chain data transfer object.
An array containing the Gram sequence.
Utility function to find a sequence given an order and a direction. This returns an array containing the first or last elements of an array equal to the order.
An array containing the Gram sequence.
The length of the array to return.
If true, will find elements at the end. If false will find elements at the beginning.
Picks the last random value from a Markov Chain given a sequence.
A Markov Chain data transfer object.
The starting Gram sequence. If this isn't supplied this defaults to the start.
A mask containing keys in the chain that should be ignored.
A Random engine.
Creates a new Markov Chain data transfer object.
An optional array of sequences to generate the grams from.
The maximum gram size of the markov chain.
Determines how sequences should be inserted. If false, delimiters will be prepended and appended to the sequences. "start" or setting true will only prepend the start delimiter, while "end" will append the end delimiter. "middle" will not add any delimiters.
If true this will strip out the sequences, removing the chain's source data.
Picks the next random value from a Markov Chain given a sequence.
A Markov Chain data transfer object.
The starting Gram sequence. If this isn't supplied this defaults to the start.
A mask containing keys in the chain that should be ignored.
A Random engine.
Picks the next or last random value from a Markov Chain.
A Markov Chain data transfer object.
The starting Gram sequence. If this isn't supplied this defaults to the start.
If true states that come after the gram will be picked. If false states that came before the gram will be picked.
A mask containing keys in the chain that should be ignored.
A Random engine.
Makes a random pick from the next or last state of a given Gram.
The starting Gram sequence. If this isn't supplied this defaults to the start.
If true states that come after the gram will be picked. If false states that came before the gram will be picked.
A mask containing keys in the chain that should be ignored.
A Random engine.
Generated using TypeDoc
Class