nan_detrend Descriptive Statistics nan_filter

NaN Toolbox >> NaN Toolbox > Descriptive Statistics > nan_ecdf

nan_ecdf

empirical cumulative function

Calling Sequence

[F,X] = nan_ecdf(Y)
nan_ecdf(Y)
nan_ecdf(gca,Y)
nan_ecdf(...,'plot')

Parameters

Y :

input data, must be a vector or matrix, in case Y is a matrix, the ecdf for every column is computed.

'plot':

if one input parameter is 'plot', it plots the empirical cdf, in axis gca.

[F,X]:

empirical cumulative distribution functions (i.e Kaplan-Meier estimate)

Description

NaN's are considered Missing values and are ignored.

Examples

y = grand(50,1,'exp',10);
[F,X]=nan_ecdf(y,'plot');
xx = 0:.1:max(y);
yy = 1-exp(-xx/10);
plot(xx,yy,'g-','LineWidth',2)
legend('Empirical','Population',4);

See also

Authors

nan_detrend Descriptive Statistics nan_filter