Code covered by the BSD License  

Highlights from
Bayes classification for 2D Gaussian distributions

5.0

5.0 | 2 ratings Rate this file 24 Downloads (last 30 days) File Size: 2.19 KB File ID: #32031
image thumbnail

Bayes classification for 2D Gaussian distributions

by

 

Draw Bayes classification results for 2D Gauss. distributions, return func. handles of N post. prob.

| Watch this File

File Information
Description

It can be seen as a introduction to Bayesian classification, or Matlab plotting.
function ret = drawBayesGauss2D(mu,c,prProb,ax)
% Draw Bayes classification results for 2D Gaussian distributions.
% mu: 2-by-N, mean vector for N classes.
% c: 2-by-2-by-N, cov matrices.
% prProb: 1-by-N, prior probabilities.
% ax: [xmin xmax ymin ymax], plotting ranges.
% ret: If a return value is required, it will be a 1-by-N cell array
% containing N function_handles of N posterior probabilities.
% You can use ret{i}(X,Y) to get post-prob of class i at (X,Y).

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
15 Sep 2011 Mr Smart  
13 Sep 2011 Mr Smart  

Contact us