1% [x, y] = CdfFromTrace(trace)
3% Returns
the empirical distribution function of
the trace.
7% trace : vector of doubles
12% x : vector of doubles
13% The points where
the empirical cdf
is calculated
14% y : vector of doubles
15% The values of
the empirical cdf at
the given points
17function [x, y] = CdfFromTrace (trace)
19 x = reshape(sort(trace), 1, length(trace));
20 y = linspace(0, 1, length(trace));