from
gaussian_mixture_model.m
by Matthew Roughan
Estimate the parameters of a 1D Gaussian Mixture Model using the EM algorithm.
|
| norm_density(x, mu, sigma) |
function p = norm_density(x, mu, sigma)
% Compute density of normal distribution function
%
% file: norm_density.m, (c) Matthew Roughan, Tue Jul 21 2009
% directory: /home/mroughan/src/matlab/NUMERICAL_ROUTINES/
% created: Tue Jul 21 2009
% author: Matthew Roughan
% email: matthew.roughan@adelaide.edu.au
%
% Calculate normal density in 1D.
%
% INPUTS:
% x = a vector of points at which to calculate the normal CDF
% mu = mean of the normal
% sigma = std dev. of the normal
%
%
p = exp( -(x-mu).^2 / (2*sigma^2) ) / (sigma * sqrt(2*pi) );
|
|
Contact us at files@mathworks.com