Saya memiliki rangkaian lengkap (tepatnya 432 pengamatan) dari 4 status : mis
EDIT: The observation sequences are of unequal lengths! Does this change anything?
Is there a way of calculating the transition matrix
in Matlab or R or similar? I think the HMM package might help. Any thoughts?
r
matlab
markov-process
HCAI
sumber
sumber
Jawaban:
Please, check the comments above. Here is a quick implementation in R.
Results:
A (probably dumb) implementation in MATLAB (which I have never used, so I don't know if this is going to work. I've just googled "declare vector matrix MATLAB" to get the syntax):
sumber
for
loop. The 3rd line from the original code is counting the number of timesHere is my implementation in R
sumber
Here is a way to do it in Matlab:
Acknowledgement owed to SomptingGuy: http://www.eng-tips.com/viewthread.cfm?qid=236532
sumber