function [ cas ] = permTest( features, conds ) PERM_NUM = 10e4; cas = zeros(1, PERM_NUM); parfor i=1:PERM_NUM permConds = conds(randperm(length(conds))); cas(i) = knnEvaluate(features, permConds); disp([num2str(i) ' - ' num2str(cas(i))]); end hist(cas); save('permutationsCas.mat','cas'); end