20.04.2014 Views

Combining Pattern Classifiers

Combining Pattern Classifiers

Combining Pattern Classifiers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

28 FUNDAMENTALS OF PATTERN RECOGNITION<br />

Fig. 1.9<br />

(a) The skeletons of the two classes to be generated. (b) The generated data set.<br />

1.5.3.1 Noisy Geometric Figures. The following example suggests one possible<br />

way for achieving this. (The Matlab code is shown in Appendix 1E.)<br />

Suppose we want to generate two classes in R 2 with prior probabilities 0.6 and<br />

0.4, respectively. Each class will be distributed along a piece of a parametric<br />

curve. Let class v 1 have a skeleton of a Lissajous figure with a parameter t, such that<br />

x ¼ a sin nt, y ¼ b cos t, t [ ½ p, pŠ (1:36)<br />

Pick a ¼ b ¼ 1 and n ¼ 2. The Lissajous figure is shown in Figure 1.9a.<br />

Let class v 2 be shaped as a segment of a line with a parametric equation<br />

x ¼ t, y ¼ at þ b, for t [ ½ 0:3, 1:5Š (1:37)<br />

Let us pick a ¼ 1:4 and b ¼ 1:5. The segment is depicted in Figure 1.9a.<br />

We shall draw random samples with uniform distributions along the skeletons<br />

with overlaid normal distributions of specified variances. For v 1 we shall use s 2 ¼<br />

0:005 on both axes and a diagonal covariance matrix. For v 2 , we shall use s 2 1 ¼<br />

0:01 (1:5 x) 2 and s 2 2 ¼ 0:001. We chose s 1 to vary with x so that smaller x<br />

values exhibit larger variance. To design the data set, select the total number of<br />

data points T, and follow the list of steps below. The normal distributions for the<br />

example are generated within the code. Only the standard (uniform) random generator<br />

of Matlab will be used.<br />

1. Generate a random number r [ ½0;1Š.<br />

2. If r , 0:6, then proceed to generate a point from v 1 .<br />

(a) Generate randomly t in the interval ½ p, pŠ.<br />

(b) Find the point (x, y) on the curve using Eq. (1.36).<br />

(c) To superimpose the noise generate a series of triples of random numbers<br />

u, v within ½ 3s, 3sŠ, and w [ ½0, 1Š, until the following condition,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!