MATLAB Programs and Exercises
Computer Programs
- Generation of points around an (l − 1)-dimensional hyperplane: Write a MATLAB function named generate_hyper that generates randomly l-dimensional points xi, = [x1(i),x2(i),…,xi(i)]T around an (l − 1)-dimensional hyperplane H: wTx + w0 = 0, where w = [w1, w2,…,wl]T. More specifically, the function takes as inputs: (a) the parameter (column) vector w for H (wl. ≠ 0), (b) the offset w0 for H, (c) a positive parameter a that defines the range [−a, a], where each one of the first (l − 1) coordinates of the points is uniformly distributed, (d) the positive parameter e that defines the range [−e, e] of a uniformly distributed noise source, which is added to the term to produce the lth coordinate, ...
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.