% % The problem is on epage 327 % % Written by: % -- % John L. Weatherwax 2008-02-20 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- clear all; close all; clc; addpath('../../Code/CSTool'); load nfl; figure; plot( X(:,1), X(:,2), 'x' ); % estimate the density with a bi-variate histogram: % %[x,y,z] = cshist2d(X); % estimate the density with a frequency polygon: % [fp,x,y] = csfreqpoly(X); % estimate the density using the adaptive mixture algorithm: % %maxterms = 5; %[wgts,mu,covm] = csadpmix(X,maxterms);