Documentation |
Empirical cumulative distribution function
[f,x] = ecdf(y) returns the empirical cumulative distribution function (cdf), f, evaluated at the points in x, using the data in the vector y.
In survival and reliability analysis, this empirical cdf is called the Kaplan-Meier estimate. And the data might correspond to survival or failure times.
[f,x] = ecdf(y,Name,Value) returns the empirical function values, f, evaluated at the points in x, with additional options specified by one or more Name,Value pair arguments.
For example, you can specify the type of function to evaluate or which data is censored.