资源简介
高斯混合模型 EM算法.[alpha, mu, sigma, ll ] = gmm(data, k, nres, sig, prevsing, maxstep, prec)
代码片段和文件信息
function [abest mbest sbest ll] = gm(data k nr sig)
%
% [alpha mu sigma [ll] ] = gm(data k [nres sig])
%
% INPUT:
% data : n by d data points (n points of dimensionality d).
% k : number of desired clusters.
% nres : number of random restarts
% sig : matrix of 0‘s and 1‘s used to cancel unwanted elements
% in sigma matrices (for forced decoupling)
%
% OUTPUT:
% alpha : weights of components (k by 1).
% mu : mean for each component (k by d).
% sigma : covariance matrix for each comp. (d by d by k).
% optional:
% ll(1:nres) : log-likelihood per restart
%
%
% NOTES:
% This is a wrapper function that calls gmm.dll to do the actual job.
% The purpose of this function is to supply defaults and to allow
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1566 1999-03-19 16:51 gmm Matlab\gm.m
文件 2100 1999-04-03 17:47 gmm Matlab\gmcv.m
文件 60416 1999-03-04 21:06 gmm Matlab\gmm.dll
文件 1551 1999-01-23 07:05 gmm Matlab\gmm.m
文件 50176 1999-03-05 22:24 gmm Matlab\normal.dll
文件 930 1999-03-05 22:16 gmm Matlab\normal.m
目录 0 2012-08-08 23:12 gmm Matlab
----------- --------- ---------- ----- ----
116739 7
评论
共有 条评论