Mercurial > octave-nkf
comparison scripts/statistics/distributions/empirical_cdf.m @ 5428:2a16423e4aa0
[project @ 2005-08-23 18:38:27 by jwe]
author | jwe |
---|---|
date | Tue, 23 Aug 2005 18:38:28 +0000 |
parents | 4c8a2e4e0717 |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
5427:a92afe70fb8d | 5428:2a16423e4aa0 |
---|---|
22 ## For each element of @var{x}, compute the cumulative distribution | 22 ## For each element of @var{x}, compute the cumulative distribution |
23 ## function (CDF) at @var{x} of the empirical distribution obtained from | 23 ## function (CDF) at @var{x} of the empirical distribution obtained from |
24 ## the univariate sample @var{data}. | 24 ## the univariate sample @var{data}. |
25 ## @end deftypefn | 25 ## @end deftypefn |
26 | 26 |
27 ## Author: KH <Kurt.Hornik@ci.tuwien.ac.at> | 27 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
28 ## Description: CDF of the empirical distribution | 28 ## Description: CDF of the empirical distribution |
29 | 29 |
30 function cdf = empirical_cdf (x, data) | 30 function cdf = empirical_cdf (x, data) |
31 | 31 |
32 if (! isvector (data)) | 32 if (! isvector (data)) |