LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
CdfFromTrace.m
1% [x, y] = CdfFromTrace(trace)
2%
3% Returns the empirical distribution function of the trace.
4%
5% Parameters
6% ----------
7% trace : vector of doubles
8% The trace data
9%
10% Returns
11% -------
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
16
17function [x, y] = CdfFromTrace (trace)
18
19 x = reshape(sort(trace), 1, length(trace));
20 y = linspace(0, 1, length(trace));
21end
22