function values = calc_sens_spec(cc, flag_mean=0) Calculates sensitivities and specificities for each class (row of cc) Inputs: cc: confusion matrix either in HITS, not percentage flag_mean: if true, the average of all sensitivities and specificities will be returned (this is useful because the cases when sensitivity or specificity is not defined (like rows or columns of cc containing all zeros) are discounted Outputs: values: a no_classes X 2 matrix. First column are the sensitivities; second column are the specificities sens(i) = cc(i, i)/sum(cc(i, :)) spec(i) = sum_{j, j ~= i} c(j, j) / sum_{j, j ~= i} sum(cc(j, :))