PSTGENERATE
Arguments: dict length &optional minpast incipit1 incipit2 reconstr strategy constraints equiv1 equiv2 [generic-function]
Generates a new sequence following the model of a given PST (generated by the PSTify function).
inputs :
dict: a PST generated by the PSTify function.
Length: integer, >=1. length of the sequence to be generated.
minPast: integer, >=0. minimum length of the context.
incipit1: list. a sequence of analysis symboles that will be the beginning of the generated analysis sequence.
incipit2: list. a sequence of synthesis symboles that will be the beginning of the generated synthesis sequence.
reconstr: the name of a function that reconstructs the symbol from analysis and synthesis information. If nil, the predefined (in LZify) fonction will be used.
strategy: the name of function that chooses new synthesis information according to its last evolution.
constraints: constraint function of the last generated analysis information and last generated sequence, both reversed.
equiv1: the name of function that compares a symbole at the root of the tree with the last generated one.
equiv2: the name of function that compares a symbole with any in the tree.
Length: integer, >=1. length of the sequence to be generated.
minPast: integer, >=0. minimum length of the context.
incipit1: list. a sequence of analysis symboles that will be the beginning of the generated analysis sequence.
incipit2: list. a sequence of synthesis symboles that will be the beginning of the generated synthesis sequence.
reconstr: the name of a function that reconstructs the symbol from analysis and synthesis information. If nil, the predefined (in LZify) fonction will be used.
strategy: the name of function that chooses new synthesis information according to its last evolution.
constraints: constraint function of the last generated analysis information and last generated sequence, both reversed.
equiv1: the name of function that compares a symbole at the root of the tree with the last generated one.
equiv2: the name of function that compares a symbole with any in the tree.
output :
a list of events in the same alphabet as the analyzed sequence.
After building a pattern dictionary using PSTify, PSTGenerate may be used to
generate a new sequence that imitates the statistical behaviour encoded into the dictionary.
If a list of <something> had been analyzed by PSTify, the result will be a new list of <something>.
At a every point of the generation, PSTGenerate looks at the longest sequence of last generated elements
that belongs to the PST.
It then checks the conditional probabilities associated with
that pattern (or context) , then generates a new element with regard to the probability. It then adds
this element to the right of the generated sequence, and iterates.
generate a new sequence that imitates the statistical behaviour encoded into the dictionary.
If a list of <something> had been analyzed by PSTify, the result will be a new list of <something>.
At a every point of the generation, PSTGenerate looks at the longest sequence of last generated elements
that belongs to the PST.
It then checks the conditional probabilities associated with
that pattern (or context) , then generates a new element with regard to the probability. It then adds
this element to the right of the generated sequence, and iterates.
If, at a certain point of the generation, the length of the context is lower than minPast, then PSTGenerate
goes back one step before and generates another symbols until it respects the minPast constraint. It may
go back as far as necessa
ry. If no sequence can respect the constraint, PSTGenerate returns nil.
Thanks to the minPast parameter, you can prevent PSTGenerate from generating with no or little context.
goes back one step before and generates another symbols until it respects the minPast constraint. It may
go back as far as necessa
ry. If no sequence can respect the constraint, PSTGenerate returns nil.
Thanks to the minPast parameter, you can prevent PSTGenerate from generating with no or little context.