On 11/15/2009 01:16 AM, David Warde-Farley wrote:
> On 14-Nov-09, at 10:57 AM, Bruce Southey wrote:
>
>
>> Is it just that bincount does not count negative numbers?
>> If so, then I would strongly argue that is insufficient for creating
>> new function. Rather you need to provide a suitable pat
On 14-Nov-09, at 10:57 AM, Bruce Southey wrote:
> Is it just that bincount does not count negative numbers?
> If so, then I would strongly argue that is insufficient for creating
> new function. Rather you need to provide a suitable patch to fix
> bincount or replace bincount with a better version
On Sat, Nov 14, 2009 at 6:40 AM, wrote:
> On Sat, Nov 14, 2009 at 7:10 AM, wrote:
>> On Sat, Nov 14, 2009 at 6:53 AM, Priit Laes wrote:
>>> Ühel kenal päeval, R, 2009-11-13 kell 13:36, kirjutas Ernest Adrogué:
13/11/09 @ 09:41 (+0200), thus spake Priit Laes:
> Does anyone have a scen
On Sat, Nov 14, 2009 at 7:10 AM, wrote:
> On Sat, Nov 14, 2009 at 6:53 AM, Priit Laes wrote:
>> Ühel kenal päeval, R, 2009-11-13 kell 13:36, kirjutas Ernest Adrogué:
>>> 13/11/09 @ 09:41 (+0200), thus spake Priit Laes:
>>> > Does anyone have a scenario where one would actually have both negative
On Sat, Nov 14, 2009 at 6:53 AM, Priit Laes wrote:
> Ühel kenal päeval, R, 2009-11-13 kell 13:36, kirjutas Ernest Adrogué:
>> 13/11/09 @ 09:41 (+0200), thus spake Priit Laes:
>> > Does anyone have a scenario where one would actually have both negative
>> > and positive numbers (integers) in the li
Ühel kenal päeval, R, 2009-11-13 kell 13:36, kirjutas Ernest Adrogué:
> 13/11/09 @ 09:41 (+0200), thus spake Priit Laes:
> > Does anyone have a scenario where one would actually have both negative
> > and positive numbers (integers) in the list?
>
> Yes: when you have a random variable that is the
13/11/09 @ 09:41 (+0200), thus spake Priit Laes:
> Does anyone have a scenario where one would actually have both negative
> and positive numbers (integers) in the list?
Yes: when you have a random variable that is the difference
of two (discrete) random variables. For example, if you measure
the
Ühel kenal päeval, N, 2009-11-12 kell 18:16, kirjutas David
Warde-Farley:
> On 12-Nov-09, at 6:09 PM, josef.p...@gmail.com wrote:
>
> > On Thu, Nov 12, 2009 at 6:00 PM, Priit Laes wrote:
> >> Hey,
> >>
> >> I cooked up an initial implementation for one-dimensional
> >> histogram_discrete().
> >>
On Thu, Nov 12, 2009 at 20:12, wrote:
> On Thu, Nov 12, 2009 at 6:31 PM, Robert Kern wrote:
>> On Thu, Nov 12, 2009 at 17:25, wrote:
>>
>>> If I could make a related wish, I wish np.bincount to take also a 2d
>>> array as weights.
>>
>> It does.
>
> If it does, I don't manage to make it work,
On Thu, Nov 12, 2009 at 6:31 PM, Robert Kern wrote:
> On Thu, Nov 12, 2009 at 17:25, wrote:
>
>> If I could make a related wish, I wish np.bincount to take also a 2d
>> array as weights.
>
> It does.
If it does, I don't manage to make it work, and the new docs say 1dimension.
Josef
>>> np.bin
On Thu, Nov 12, 2009 at 17:25, wrote:
> If I could make a related wish, I wish np.bincount to take also a 2d
> array as weights.
It does.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it a
On Thu, Nov 12, 2009 at 6:16 PM, David Warde-Farley wrote:
> On 12-Nov-09, at 6:09 PM, josef.p...@gmail.com wrote:
>
>> On Thu, Nov 12, 2009 at 6:00 PM, Priit Laes wrote:
>>> Hey,
>>>
>>> I cooked up an initial implementation for one-dimensional
>>> histogram_discrete().
>>>
>>> Example:
>>>
On 12-Nov-09, at 6:09 PM, josef.p...@gmail.com wrote:
> On Thu, Nov 12, 2009 at 6:00 PM, Priit Laes wrote:
>> Hey,
>>
>> I cooked up an initial implementation for one-dimensional
>> histogram_discrete().
>>
>> Example:
>>
import numpy
numpy.histogram_discrete([-1, 9, 9, 0, 3, 5, 3])
>>
On Thu, Nov 12, 2009 at 6:00 PM, Priit Laes wrote:
> Hey,
>
> I cooked up an initial implementation for one-dimensional
> histogram_discrete().
>
> Example:
>
>>> import numpy
>>> numpy.histogram_discrete([-1, 9, 9, 0, 3, 5, 3])
> array([1, 1, 0, 0, 2, 0, 1, 0, 0, 0, 2])
>>> numpy.histogram_discre
Hey,
I cooked up an initial implementation for one-dimensional
histogram_discrete().
Example:
>> import numpy
>> numpy.histogram_discrete([-1, 9, 9, 0, 3, 5, 3])
array([1, 1, 0, 0, 2, 0, 1, 0, 0, 0, 2])
>> numpy.histogram_discrete([-9, 9])
array([1, 0, 0, ..., 0, 0, 1])
Suggestions, cri
15 matches
Mail list logo