[SciPy-dev] Random Normal with zero sdev?

Gabriel Gellner ggellner at uoguelph.ca
Wed Feb 7 11:27:42 EST 2007


Is there any reason that numpy.random.normal raises an exception for
stdev=0?

In R it simply returns the mean, which seems a useful 'degenerate' case
to me. (also if you use the mean + sqrt(stdev)*randn() idiom for
matlab, it also has the nice degenerate case . . .)

Just wanted to see if this was a bug, or a feature . . . (if a
feature, I will simply make a wrapper for myself).

Gabriel



More information about the SciPy-Dev mailing list