| Original Message (ID '273955') By Bill Simpson: |
| If you can get your Markov data into a list then perhaps you can use this:
In[1]:= markovdata={2,1,1,1,3,2,1,2,2,3};
Map[{First[#],Length[#]}&,Split[Sort[markovdata]]]
Out[2]= {{1,4},{2,4},{3,2}}
That shows that
1 appeared 4 times
2 appeared 4 times
3 appeared 2 times |
|