errors with scipy.stats
Hi, I'm going into trouble with scipy.stats, does someone can explain me that?: ############################# |datas|[135]>import scipy.stats |datas|[136]>a.dtype Out [136]:dtype('float64') |datas|[137]>a.fill_value() Out [137]:-9.9999999999999995e-21 |datas|[138]>a.shape Out [138]:(744,) |datas|[144]>a.max() Out [144]:36.0 |datas|[146]>a.min() Out [146]:0.0 |datas|[147]>a.mean() Out [147]:array(3.20519835841) |datas|[148]>stats.mean(a) Out [148]:1750.47849462 |datas|[152]>his = stats.histogram2(a, [0,10,20,30,40,50]) |datas|[153]>his Out [153]:array([692, 27, 10, 2, 0, 13]) ######################### then mean and histogram2 give wrong results! Thanks for your help!
Are there any installation instructions for installing umfpack on mac? I tried install suitesparse via macports but this seems to be broken. Vincent
Vincent Nijs wrote:
Are there any installation instructions for installing umfpack on mac? I tried install suitesparse via macports but this seems to be broken.
Try checking UMFPACK/Doc/UserGuide.pdf, but there are only generic Unix/Windows instructions, IMHO. r.
Joshua Petterson wrote:
Hi, I'm going into trouble with scipy.stats, does someone can explain me that?: ############################# |datas|[135]>import scipy.stats
|datas|[136]>a.dtype Out [136]:dtype('float64')
|datas|[137]>a.fill_value() Out [137]:-9.9999999999999995e-21
This appears like a is a masked array, correct? Not all of the functions in scipy.stats support masked arrays. The methods on masked arrays do support masked arrays, of course. -- 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 as though it had an underlying truth." -- Umberto Eco
On Tuesday 06 February 2007 13:24:46 Robert Kern wrote:
This appears like a is a masked array, correct? Not all of the functions in scipy.stats support masked arrays. The methods on masked arrays do support masked arrays, of course.
If the data is 1D or can be ravelled safely, you can try to compress it before applying stats methods. At least you get rid of your masked data...
participants (5)
-
Joshua Petterson -
Pierre GM -
Robert Cimrman -
Robert Kern -
Vincent Nijs