- [Function]
- (
markov-analyze
list [:order
i] [:print?
b] [:pattern?
b] [:key
l])
Performs an analysis of elements in list and prints or returns the results.
markov-analyze
supports the following keyword arguments:
:order
number- The order of the Markov analysis, defaults to 1.
:print
{true |:table
|:pattern
| false}-
If the value is true (the default) then two results are printed, a
transition table and a pattern description. The transition table that
is printer details the distribution of inputs and outputs in the data.
The pattern description that is printed will instantiate that table if
it is evalutated. If
:print
is just:table
or:pattern
then only that form of the analysis is printed. If:print
is false then no analysis is printed. :pattern
{false | true}-
If false (the default) then markov-analyze does not
return values. If
:pattern?
is true then a markov pattern based on the analysis transition table is returned. :key
function- A Lisp function to apply to each item in sequence. function should take one argument and return the actual datum to be analyzed.
:sort
{list | function}-
Specifies the order of labels in the columns and rows of
the table. If a list of labels
is specified its ordering determines
the column order of the table. If
:sort
is a function it is passed to sort to sort the table labels. :decimals
number- Specifies the number of decimals to use when printing the table. Defaults to 3.
See Also:
- markov [Class]