Mercurial > hg > octave-lyh
comparison scripts/statistics/distributions/kolmogorov_smirnov_cdf.m @ 10687:a8ce6bdecce5
Improve documentation strings.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 08 Jun 2010 20:22:38 -0700 |
parents | f0c3d3fc4903 |
children | be55736a0783 |
comparison
equal
deleted
inserted
replaced
10686:8675858ba1e2 | 10687:a8ce6bdecce5 |
---|---|
54 tol = eps ("single"); | 54 tol = eps ("single"); |
55 else | 55 else |
56 tol = eps; | 56 tol = eps; |
57 endif | 57 endif |
58 else | 58 else |
59 if (! isscalar (tol) || ! (tol > 0)) | 59 if (! (isscalar (tol) && (tol > 0))) |
60 error ("kolmogorov_smirnov_cdf: tol has to be a positive scalar"); | 60 error ("kolmogorov_smirnov_cdf: tol must be a positive scalar"); |
61 endif | 61 endif |
62 endif | 62 endif |
63 | 63 |
64 n = numel (x); | 64 n = numel (x); |
65 if (n == 0) | 65 if (n == 0) |
66 error ("kolmogorov_smirnov_cdf: x must not be empty"); | 66 error ("kolmogorov_smirnov_cdf: X must not be empty"); |
67 endif | 67 endif |
68 | 68 |
69 cdf = zeros (size (x)); | 69 cdf = zeros (size (x)); |
70 | 70 |
71 ind = find (x > 0); | 71 ind = find (x > 0); |