Commit 8bc63e51d52eecb25622afe0eef95cdfb3b2e6fd

Authored by bklare
1 parent 44bf497b

Script to compute ROC score at a specific point

scripts/matlab/mmn.m 0 → 100644
  1 +function [S1] = mmn(S)
  2 +S1 = (S - min(S(:))) ./ (max(S(:)) - min(S(:)));
  3 +end
... ...
scripts/matlab/rocPoint.m 0 → 100644
  1 +function [ta score] = getROC(t,f,th)
  2 +% [ta] = getROC(t,f,th)
  3 + [a1 a2] = min(abs(f - th));
  4 + ta = t(a2);
  5 + score = a2;
  6 + if max(f) == 0
  7 + ta = 1.0;
  8 + end
... ...