Hi Frank,
I just checked it now, with your data, and seems that it is working fine…
To be sure we are speaking about the same thing.
Let remember that , given a matrix and an (sorry, it is old and first element = 1), just return the next element. One at once.
To check if is working properly, in your case is enough do not have the same index than . I checked it with 1, 2 and 3…
For example, with = 1
OM => (2 2 3 3 2 2 2 3 3 3 2 2 2 3 3 2 2 3 2 2 3 3 2 2 2 2 2 2 3 3 2 2 2 3 2 2 3 2 3 2 2 2 2 3 3 2 2 3 3 3 2 2 2 3 3 3 3 3 3 3 2 3 2 3 3 3 2 3 3 2 2 3 3 2 2 2 2 3 2 3 2 3 3 2 3 3 2 3 2 3 2 2 2 3 3 2 3 3 3 2)
with = 2
OM => (1 3 3 1 3 3 3 3 1 1 3 1 1 1 3 3 3 3 1 1 3 3 1 1 1 1 3 3 3 3 3 1 3 1 1 3 3 3 3 3 1 3 3 1 1 3 1 3 1 1 1 3 3 1 1 1 1 3 1 1 1 1 3 1 1 3 3 1 1 1 1 1 1 3 3 1 1 3 1 1 1 1 1 1 3 1 1 3 1 1 3 1 3 3 1 1 1 3 1 3)
with = 3
OM => (1 1 2 2 1 2 2 2 1 1 2 2 2 1 1 2 2 2 2 1 2 2 1 1 1 1 2 2 1 1 1 1 2 1 1 2 2 2 2 2 2 1 1 2 2 1 1 1 2 1 1 1 1 2 1 2 1 2 2 1 1 1 1 1 1 1 1 2 2 1 1 2 2 1 2 1 2 2 1 1 2 2 2 1 1 1 1 1 2 1 2 1 2 1 1 1 2 2 2 1)
if you have repeated elements, in this first example, it is just means that you are trowing your dices again from the same index…
seems ok, no ?
for , with your matrix, = 1, and length size of the sequence = 200
OM => (1 3 2 3 2 3 1 3 1 3 1 2 1 2 1 2 1 3 2 1 2 1 3 2 3 1 2 3 1 3 2 1 2 3 2 1 3 2 3 2 1 2 3 2 1 2 3 2 1 3 2 3 2 3 1 3 2 3 1 3 2 3 1 3 2 1 2 1 2 1 2 3 2 1 3 2 1 2 3 2 1 2 3 2 3 2 3 1 3 1 2 1 2 3 1 2 3 2 1 3 2 3 2 3 2 3 2 1 3 2 3 1 3 1 2 3 2 3 2 3 2 1 3 2 3 2 3 1 3 1 3 1 3 2 3 2 3 2 3 1 3 2 1 2 3 1 3 1 3 2 3 1 3 1 3 2 3 1 3 2 3 2 1 3 2 3 1 3 1 3 1 3 1 2 1 2 1 3 1 3 1 3 1 3 2 1 2 1 2 3 2 1 2 3 1 2 3 1 3 1)
the same seems to work properly…
all the best
Mikhail
markov-question.omp (2.58 KB)