function data = load_singer(do_preprocessing, do_zscore) % LOAD_SINGER - Loads the singer dataset and applys some % preprocessing/dimensionality reduction if desired % % Written by: % -- % John L. Weatherwax 2005-08-14 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- addpath( '../../Code/eda_data' ); load singer; data = [Alto_1;Alto_2;Bass_1;Bass_2;Soprano_1;Soprano_2;Tenor_1;Tenor_2]; % n=number of samples=235; % p=number of features=1; [n,p] = size(data); % apply some preprocessing to our data ... % if( do_preprocessing ) f_mu = mean( data ); f_sd = std( data ); % compute the z-score of this data: if( do_zscore ) data_t = ( data - repmat( f_mu, [n,1] ) ) ./ repmat( f_sd, [n,1] ); data = data_t; end end