function data = load_votfraud(do_preprocessing, do_zscore) % LOAD_VOTFRAUD - Loads the votfraud 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 votfraud; [absentee_s,inds] = sort( absentee ); machine_s = machine(inds); data = [ absentee_s, machine_s ]; % n=number of samples=22; % p=number of features=2; [n,p] = size(data); % sort the dataset so that the first column increases as we go down it: % 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