LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
mtrace_pc.m
1function pc = mtrace_pc(~,C)
2% Computes the probabilities of arrival for each class.
3% T: the inter-arrival times (ignored, for orthogonality with other APIs)
4% C: the class labels
5
6labels = unique(C);
7m = length(labels);
8
9pc = zeros(m,1);
10
11for i = 1:m
12 pc(i) = sum(C==labels(i))/length(C);
13end