Skip to content

Commit

Permalink
Moved entities demo out of pmtk3 projects directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
murphyk2 committed Dec 16, 2012
1 parent 4adb190 commit c2cb6c8
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 1,513 deletions.
4 changes: 2 additions & 2 deletions matlabTools/graphics/plotROC.m
Original file line number Diff line number Diff line change
@@ -1,9 1,9 @@
function h = plotROC(falseAlarmRate, detectionRate, col, EER, tprAtThresh, fprAtThresh)
% Plot (convex hull of a) receiver operating curve


% This file is from pmtk3.googlecode.com

if nargin < 3, col = 'k'; end

k = convhull([colvec(falseAlarmRate); 1], [colvec(detectionRate); 0]);
%k = 1:numel(falseAlarmRate);
Expand All @@ -17,7 17,7 @@

hold on
plot([0 1],[0 1],'k'); % 45deg up to upper right
plot([0 1],[1 0],'k') % 45deg down to lower left
%plot([0 1],[1 0],'k') % 45deg down to lower left

if nargin >= 4
plot(EER, 1-EER, 'o', 'markersize', 12, 'linewidth', 2, 'color', col);
Expand Down
5 changes: 3 additions & 2 deletions matlabTools/stats/mutualInfoAllPairsDiscrete.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 58,9 @@
%pij(:,:,v1,v2) = full((documents==values(v1))*(documents==values(v2))');
A = double(data==values(v1)) .*weights;
B = double(data==values(v2));
% A(x1,d) = 1 iff D(x1,d)=v1, B(x2,d) = 1 iff D(x2,d) = v2
% pij(x1,x2,v1,v2) = sum_d A(x1,d) B(x2,d) = A*B'
% A(x1,n) = 1 iff data(x1,n)=v1
% B(x2,n) = 1 iff data(x2,n) = v2
% pij(x1,x2,v1,v2) = sum_n A(x1,n) B(x2,n) = A*B'
pij(:,:,v1,v2) = A*B';
end;
end;
Expand Down
327 changes: 0 additions & 327 deletions projects/entities/entityDemo.txt

This file was deleted.

Loading

0 comments on commit c2cb6c8

Please sign in to comment.