getTransitions()
Return every symbol that has followed a context, with how often each did.
markovmodel.getTransitions(tupleOfSymbols)
The context must already exist in the model. The two lists are parallel.
Parameters
markovmodel.getTransitions(tupleOfSymbols)
| Parameter | Type | Default | Description |
|---|---|---|---|
tupleOfSymbols |
tuple |
required | The context to look up. |
Returns
return symbolList, countList, total
| Value | Type | Description |
|---|---|---|
| symbolList | list |
The symbols that have followed the context. |
| countList | list[int] |
How many times each symbol followed it. |
| total | int |
The total of all the counts. |