MATLAB Programs and Exercises
Computer Programs
- Data generator: Write a MATLAB function named data_generator that generates a two-class, two-dimensional data set using four normal distributions, with covariance matrices Si = s * I, i = 1,…, 4, where I is the 2 × 2 identity matrix. The vectors that stem from the first two distributions belong to class +1, while the vectors originating from the other two distributions belong to class −1. The inputs for this function are: (a) a 2 × 4 matrix, m, whose ith column is the mean vector of the ith distribution, (b) the variance parameter s, mentioned before, and (c) the number of the points, N, which will be generated from each distribution. The output of the function consists of (a) an array, X
Get Pattern Recognition, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.