Mercurial > octave-antonio
comparison scripts/statistics/distributions/chi2pdf.m @ 11472:1740012184f9
Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:33:04 -0800 |
parents | e00de2d5263c |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11471:994e2a93a8e2 | 11472:1740012184f9 |
---|---|
33 endif | 33 endif |
34 | 34 |
35 if (!isscalar (n)) | 35 if (!isscalar (n)) |
36 [retval, x, n] = common_size (x, n); | 36 [retval, x, n] = common_size (x, n); |
37 if (retval > 0) | 37 if (retval > 0) |
38 error ("chi2pdf: x and n must be of common size or scalar"); | 38 error ("chi2pdf: X and N must be of common size or scalar"); |
39 endif | 39 endif |
40 endif | 40 endif |
41 | 41 |
42 pdf = gampdf (x, n / 2, 2); | 42 pdf = gampdf (x, n / 2, 2); |
43 | 43 |