Difficult to classify example #1 (normal density)

Specialized data generation and visualization functions

Idealized data classes

idealPlot = specialClassPlot ;

[Graphics:../HTMLFiles/index_15.gif]

Generate data from above distributions

Number of points in each class

n1 = 1000 ; n2 = 1000 ;

Generate data

data1 = AnnularRegion[c1, rr1, rr2, n1] ; data2 = AntiAnnularRegion[c1, rr1, rr2, n2] ;

Visualize data

gd1 = PlotData2D[data1, pr, style1, nS] ; gd2 = PlotData2D[data2, pr, style2, nS] ; gd = Show[gd1, gd2, FS] ;

[Graphics:../HTMLFiles/index_19.gif]

Gaussian probability density functions

Compute Gaussian pdfs

pdf1 = gaussian[data1, {x, y}] ; pdf2 = gaussian[data2, {x, y}] ;

View Gaussian pdfs

ShowTwoGaussianPDFs[pdf1, pdf2, pr, x, y, yS, imSize] ;

[Graphics:../HTMLFiles/index_22.gif]

Classification of input space

Show[GraphicsArray[{PlotTwoClassificationRegions[pdf1, pdf2, pr, x, y, {class2Color, class1Color}, AxesFalse, FrameTrue, nF, nS], idealPlot}], yS, imSize] ;

[Graphics:../HTMLFiles/index_24.gif]


Created by Mathematica  (September 8, 2003)