comparison scripts/statistics/distributions/stdnormal_cdf.m @ 3458:d25bc039237b

[project @ 2000-01-19 09:36:14 by jwe]
author jwe
date Wed, 19 Jan 2000 09:36:28 +0000
parents e031284eea27
children 38c61cbf086c
comparison
equal deleted inserted replaced
3457:e031284eea27 3458:d25bc039237b
29 usage ("stdnormal_cdf (x)"); 29 usage ("stdnormal_cdf (x)");
30 endif 30 endif
31 31
32 [r_x, c_x] = size (x); 32 [r_x, c_x] = size (x);
33 if (r_x * c_x == 0) 33 if (r_x * c_x == 0)
34 error ("stdnormal_cdf: x must not be empty."); 34 error ("stdnormal_cdf: x must not be empty");
35 endif 35 endif
36 36
37 cdf = (ones (r_x, c_x) + erf (x / sqrt (2))) / 2; 37 cdf = (ones (r_x, c_x) + erf (x / sqrt (2))) / 2;
38 38
39 endfunction 39 endfunction