% % Example epage: 28 % Problem epage: 41 % % 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; drawnow; clc; addpath('../../Code/eda_toolbox'); addpath('../../Code/eda_data'); addpath('../../../../Duda_Hart_Stork/BookSupplements/ClassificationToolbox/Src/'); % generate some random data: % n = 100; p = 15; X = randn(n,p); X_z = zscore(X); X_rng_1 = range_trans(X); % <- no range shift (only scaling) X_rng_2 = range_trans(X,1); % <- also shift in range by min(x) ... for each column X_sphere = Whitening_transform(X.').'; % <- note the transforms required for this call