- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE \* MERGEFORMAT9
Statistics Toolbox? functions related to hidden Markov models are:
HYPERLINK /cn/help/stats/hmmgenerate.html hmmgenerate?— Generates a sequence of states and emissions from a Markov model
从一个已知的HMM模型中,产生出一个状态序列和输出序列。
Syntax
(1)[seq,states] = hmmgenerate(len,TRANS,EMIS)(2)hmmgenerate(...,Symbols,SYMBOLS)(3)hmmgenerate(...,Statenames,STATENAMES)
Description
(1)[seq,states] = hmmgenerate(len,TRANS,EMIS) takes a known Markov model, specified by transition probability matrix TRANS and emission probability matrix EMIS, and uses it to generate:
这个已知的HMM用转移概率矩阵TRANS和输出概率矩阵EMIS来说明。
A random sequence seq of emission symbols
观测值序列
A random sequence states of states
隐状态序列
The length of both seq and states is len.
len表示产生序列的长度
TRANS(i,j) is the probability of transition from state i to state j.
从状态i转移到状态j的矩阵
EMIS(k,l) is the probability that symbol l is emitted from state k.
状态k产生观测值l的概率矩阵
(2)hmmgenerate(...,Symbols,SYMBOLS) specifies the symbols that are emitted. SYMBOLS can be a numeric array or a cell array of the names of the symbols. The default symbols are integers 1 through N, where N is the number of possible emissions.
指定观测值表示方法。
(3)hmmgenerate(...,Statenames,STATENAMES) specifies the names of the states. STATENAMES can be a numeric array or a cell array of the names of the states. The default state names are 1 through M, where M is the number of states.
指定状态值表示方法。
?Note?
The function?hmmgenerate?begins with the model in state 1 at step 0, prior to the first emission. The model then makes a transition to state i1, with probability?T1i1, and generates an emission?ak1?with probabilityEi1k11.?hmmgenerate?returns i1?as the first entry of?states, and?ak1?as the first entry of?seq.
产生的序列是怎么开始的
Examples
trans = [0.95,0.05;
0.10,0.90];
emis = [1/6 1/6 1/6 1/6 1/6 1/6;
1/10 1/10 1/10 1/10 1/10 1/2];
[seq,states] = hmmgenerate(100,trans,emis)
[seq,states] = hmmgenerate(100,trans,emis,...
Symbols,{one,two,three,four,five,six},...
文档评论(0)