LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
matlab
lib
m3a
m3a
mtrace
mtrace_pc.m
1
function 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
6
labels = unique(C);
7
m = length(labels);
8
9
pc = zeros(m,1);
10
11
for
i = 1:m
12
pc(i) = sum(C==labels(i))/length(C);
13
end
Generated by
1.9.8