📄 hmmgausf.m
字号:
function f = hmmgausf(y,f,s)
%
% Compute the pmf value for a Gaussian distribution
%
% function f = hmmgausf(y,f,s)
%
% y = output value
% f = output distribution
% s = state
% Copyright 1999 by Todd K. Moon
m = length(y);
% For many distributions, there may be numeric problems with the
% computation, so the pseudo inverse is used in an attempt to stabilize it.
% There are frequently still problems!
%f =1/((2*pi)^(m/2)*sqrt(abs(det(f{3,s}))))*exp(-.5*(y-f{2,s})'*pinv(f{3,s})...
% * (y-f{2,s}));
f = sqrt(abs(det(pinv(f{3,s}))))/((2*pi)^(m/2))...
*exp(-.5*(y-f{2,s})'*pinv(f{3,s}) * (y-f{2,s}));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -