[Numpy-discussion] Computing Simple Statistics When Only they Frequency Distribution is Known

Wayne Watson sierra_mtnview@sbcglobal....
Sat Nov 28 22:58:06 CST 2009


How would I do that?

Anne Archibald wrote:
> 2009/11/28 Wayne Watson <sierra_mtnview@sbcglobal.net>:
>   
>> I was only illustrating a way that I would not consider, since the
>> hardware has already created the pdf. I've already coded it pretty much
>> as you have suggested. As I think I mention ed above, I'm a bit
>> surprised numpy doesn't provide the code you suggest as part of some
>> function. CalcSimplefromPDF(xvalues=mydatarray, avg=ture, minmax=true,
>> ...).
>>     
>
> Feel free to submit an implementation to numpy's issue tracker. I
> suggest modifying mean, std, and var (at least) so that, like average,
> they take an array of weights.
>
> Anne
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>   

-- 
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  
                
                   350 350 350 350 350 350 350 350 350 350
                     Make the number famous. See 350.org
            The major event has passed, but keep the number alive.
 
                    Web Page: <www.speckledwithstars.net/>



More information about the NumPy-Discussion mailing list