function [norm] = libsvm_normalize(data)


norm = (data - repmat(min(data,[],1),size(data,1),1))./(repmat(max(data,[],1)-min(data,[],1),size(data,1),1));