normal.m
来自「gaussian mixture modelling in matlab」· M 代码 · 共 23 行
M
23 行
% [ll, f, cl, P] = normal(data, alpha, mu, sigma)
%
% This function serves several purposes:
% - evaluate PDF of normal mixture at each of the data points
% - evaluate log-likelihood of the data under the model (for
% out-of-sample evaluation)
% - return deterministic classification
% - return ``weights" P (probabilistic classification)
%
% INPUT:
% data : data points: n rows (points), d columns (dimensions)
% alpha : component weights (k by 1)
% mu : component means (k by d)
% sigma : component covariance matrices (d by d by k) or (d by d*k)
%
% OUTPUT:
% ll : log likelihood of the data under the model
% f : (n by 1) value of (total) PDF at each of the data points
% cl : (n by 1) deterministic classification of data points
% P : (n by k) probabilistic classification of data points
%
% by Igor Cadez (03/05/99)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?