[Numpy-discussion] Conditional random variables

2011-07-04 Thread Ted To
Hi, Is there an easy way to make random draws from a conditional random variable? E.g., draw a random variable, x conditional on x>=\bar x. Thank you, Ted To ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/lis

Re: [Numpy-discussion] Broadcasting shape mismatch exception

2011-07-04 Thread Charles R Harris
On Mon, Jul 4, 2011 at 7:38 AM, Davide wrote: > Hi, > > The exception which is currently, (v1.6), raised when two non > broadcastable arrays are summed is a ValueError exception. Wouldn't it > be better to create a specific exception class, e.g. BroadcastError, to > be more specific and give bett

[Numpy-discussion] Broadcasting shape mismatch exception

2011-07-04 Thread Davide
Hi, The exception which is currently, (v1.6), raised when two non broadcastable arrays are summed is a ValueError exception. Wouldn't it be better to create a specific exception class, e.g. BroadcastError, to be more specific and give better control in exception catching? Just a suggestion,