function data = load_geyser(do_preprocessing, do_zscore) % LOAD_LUNGB - Loads the geyser 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 geyser; data = geyser.'; % n=number of samples=299; % 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