Is it relevant to scipy.stats.scoreatpercentile?
There is a comment is that function:
# TODO: this should be a simple wrapper around a well-written quantile
# function. GNU R provides 9 quantile algorithms (!), with differing
# behaviour at, for example, discontinuities.
Nadav.
--
Thanks a lot.
But my knowledge of linear equations are limited, so can explain in your
code,
which result represent the solution set of solution?
BTW : since [1, 1, 1, 1] is an obviously non-trivial solution, can you prove
your method could verify it?
On Thu, Dec 3, 2009 at 2:04 PM, Charles R H
On Wed, Dec 2, 2009 at 10:40 PM, Peter Cai wrote:
> How to solve homogeneous linear equations with NumPy?
>
>
>
> If I have homogeneous linear equations like this
>
> array([[-0.75, 0.25, 0.25, 0.25],
> [ 1. , -1. , 0. , 0. ],
> [ 1. , 0. , -1. , 0. ],
> [ 1. ,
How to solve homogeneous linear equations with NumPy?
If I have homogeneous linear equations like this
array([[-0.75, 0.25, 0.25, 0.25],
[ 1. , -1. , 0. , 0. ],
[ 1. , 0. , -1. , 0. ],
[ 1. , 0. , 0. , -1. ]])
And I want to get a non-zero solution for
The thing is that the normalization by (n-1) is done for the no. of samples
>20 or23(Not sure about this no. but sure about the thing that this no isnt
greater than 25) and below that we use normalization by n.
Regards
~ymk
___
NumPy-Discussion mailing li
On Wed, Dec 2, 2009 at 7:31 PM, Neal Becker wrote:
> Keith Goodman wrote:
>
>> On Wed, Dec 2, 2009 at 7:15 PM, Neal Becker
> wrote:
>>> Neal Becker wrote:
>>>
Keith Goodman wrote:
...
> Oh, I thought he meant there was a numpy function for partial
>>> sorting.
>
Actually, I
Keith Goodman wrote:
> On Wed, Dec 2, 2009 at 7:15 PM, Neal Becker
wrote:
>> Neal Becker wrote:
>>
>>> Keith Goodman wrote:
>>> ...
Oh, I thought he meant there was a numpy function for partial
>> sorting.
>>> Actually, I do use this myself. My code is a boost::python
wrapper
>> or
>
Neal Becker wrote:
> Keith Goodman wrote:
> ...
>> Oh, I thought he meant there was a numpy function for partial
sorting.
>>
Try this one:
template
inline void partial_sort (in_t in, int n_el) {
std::partial_sort (boost::begin (in), boost::begin(in) + n_el,
boost::end (in));
}
...
def ("pa
On Wed, Dec 2, 2009 at 7:15 PM, Neal Becker wrote:
> Neal Becker wrote:
>
>> Keith Goodman wrote:
>> ...
>>> Oh, I thought he meant there was a numpy function for partial
> sorting.
>>>
>> Actually, I do use this myself. My code is a boost::python wrapper
> or
>> the std::partial_sum using pyubla
Neal Becker wrote:
> Keith Goodman wrote:
> ...
>> Oh, I thought he meant there was a numpy function for partial
sorting.
>>
> Actually, I do use this myself. My code is a boost::python wrapper
or
> the std::partial_sum using pyublas. Here's the main pieces:
>
> template
> inline out_t parti
Keith Goodman wrote:
...
> Oh, I thought he meant there was a numpy function for partial sorting.
>
Actually, I do use this myself. My code is a boost::python wrapper or
the std::partial_sum using pyublas. Here's the main pieces:
template
inline out_t partial_sum (in_t const& in) {
out_t out
On Wed, Dec 2, 2009 at 5:44 PM, Charles R Harris
wrote:
>
>
> On Wed, Dec 2, 2009 at 6:32 PM, Anne Archibald
> wrote:
>>
>> 2009/12/2 David Warde-Farley :
>> > On 2-Dec-09, at 8:09 PM, Neal Becker wrote:
>> >
>> >> Not bad, although I wonder whether a partial sort could be faster.
>> >
>> > Proba
On 2-Dec-09, at 8:32 PM, Anne Archibald wrote:
> 2009/12/2 David Warde-Farley :
>> On 2-Dec-09, at 8:09 PM, Neal Becker wrote:
>>
>>> Not bad, although I wonder whether a partial sort could be faster.
>>
>> Probably (if the array is large) but depending on n, not if it's in
>> Python. Ideal probl
On Wed, Dec 2, 2009 at 5:52 PM, Anne Archibald
wrote:
> 2009/12/2 Keith Goodman :
>> On Wed, Dec 2, 2009 at 5:27 PM, Anne Archibald
>> wrote:
>>> 2009/12/2 Keith Goodman :
On Wed, Dec 2, 2009 at 5:09 PM, Neal Becker wrote:
> David Warde-Farley wrote:
>
>> On 2-Dec-09, at 6:55 PM
2009/12/2 Keith Goodman :
> On Wed, Dec 2, 2009 at 5:27 PM, Anne Archibald
> wrote:
>> 2009/12/2 Keith Goodman :
>>> On Wed, Dec 2, 2009 at 5:09 PM, Neal Becker wrote:
David Warde-Farley wrote:
> On 2-Dec-09, at 6:55 PM, Howard Chong wrote:
>
>> def myFindMaxA(myList):
>
On Wed, Dec 2, 2009 at 6:32 PM, Anne Archibald wrote:
> 2009/12/2 David Warde-Farley :
> > On 2-Dec-09, at 8:09 PM, Neal Becker wrote:
> >
> >> Not bad, although I wonder whether a partial sort could be faster.
> >
> > Probably (if the array is large) but depending on n, not if it's in
> > Python.
On Wed, Dec 2, 2009 at 5:27 PM, Anne Archibald
wrote:
> 2009/12/2 Keith Goodman :
>> On Wed, Dec 2, 2009 at 5:09 PM, Neal Becker wrote:
>>> David Warde-Farley wrote:
>>>
On 2-Dec-09, at 6:55 PM, Howard Chong wrote:
> def myFindMaxA(myList):
> """implement finding maximum valu
2009/12/2 David Warde-Farley :
> On 2-Dec-09, at 8:09 PM, Neal Becker wrote:
>
>> Not bad, although I wonder whether a partial sort could be faster.
>
> Probably (if the array is large) but depending on n, not if it's in
> Python. Ideal problem for Cython, though.
How is Cython support for generic
Hi Travis, I think this is yours ;)
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
Keith Goodman wrote:
...
>> Not bad, although I wonder whether a partial sort could be faster.
>
> I'm doing a lot of sorting right now. I only need to sort the lowest
> 30% of values in a 1d array (about 250k elements), the rest I don't
> need to sort. How do I do a partial sort?
I only know of
2009/12/2 Keith Goodman :
> On Wed, Dec 2, 2009 at 5:09 PM, Neal Becker wrote:
>> David Warde-Farley wrote:
>>
>>> On 2-Dec-09, at 6:55 PM, Howard Chong wrote:
>>>
def myFindMaxA(myList):
"""implement finding maximum value with for loop iteration"""
maxIndex=0
maxVal=m
On 2-Dec-09, at 8:09 PM, Neal Becker wrote:
> Not bad, although I wonder whether a partial sort could be faster.
Probably (if the array is large) but depending on n, not if it's in
Python. Ideal problem for Cython, though.
David
___
NumPy-Discussion
On Wed, Dec 2, 2009 at 5:09 PM, Neal Becker wrote:
> David Warde-Farley wrote:
>
>> On 2-Dec-09, at 6:55 PM, Howard Chong wrote:
>>
>>> def myFindMaxA(myList):
>>> """implement finding maximum value with for loop iteration"""
>>> maxIndex=0
>>> maxVal=myList[0]
>>> for index, item in e
David Warde-Farley wrote:
> On 2-Dec-09, at 6:55 PM, Howard Chong wrote:
>
>> def myFindMaxA(myList):
>>"""implement finding maximum value with for loop iteration"""
>>maxIndex=0
>>maxVal=myList[0]
>>for index, item in enumerate(myList):
>>if item[0]>maxVal:
>>
On 2-Dec-09, at 6:55 PM, Howard Chong wrote:
> def myFindMaxA(myList):
>"""implement finding maximum value with for loop iteration"""
>maxIndex=0
>maxVal=myList[0]
>for index, item in enumerate(myList):
>if item[0]>maxVal:
>maxVal=item[0]
>maxIndex=i
On Dec 2, 2009, at 6:55 PM, Howard Chong wrote:
>
> My question is: how can I make the latter version run faster? I think the
> answer is that I have to do the iteration in C.
>
> If that's the case, can anyone point me to where np.array.argmax() is
> implemented so I can write np.array.argmaxN
I will need to find the N largest numbers and corresponding indexes in an
1-D array.
If N==1, I can easily do:
def myFindMaxC(myList):
"""implement finding maximum value with using numpy.array()"""
myA=np.array(myList)
maxIndex=myA.argmax()
maxVal=myA[maxIndex]
return [maxInde
Cool. Thanks!
I will take a look at this. We have some code in scikits.image that
creates a QImage from the numpy data buffer for display. But I have
only implemented it for RGB888 so far. So you may have saved me some
time :)
Cheers!
Chris
2009/12/2 Hans Meine :
> Hi,
>
> I have just uploaded
Charles R Harris wrote:
> David says this is due to a stray old file (see earlier post), you need
> to clean out the previous numpy installation.
Done, and yes, that was it. Which is weird, because I really thought I'd
cleared it out the first time! I"m still having trouble figuring out how
to
- Original Message
> From: David Cournapeau
>
> Does the file
> /usr/lib/python2.5/site-packages/numpy/linalg/lapack_lite.so exist ?
>
> cheers,
>
> David
Indeed, this file is not there. Where can I find it?
Thanks.
Olivia
___
NumP
I'm just guessing here, but have you tried completely destroying the figure
each time, as Michael suggested?
That should avoid the problem you're having, I think...
At any rate, if you don't do a fig.clf(), I'm fairly sure matplotlib keeps a
reference to the data around.
Hope that helps,
-Joe
O
On Wed, Dec 2, 2009 at 1:28 PM, Christopher Barker wrote:
> I downloaded rc1, and built it on my PPC OS-X 10.4 box, with Python
> 2.5.2 (from python.org). Then ran the tests. I got:
>
> --
> Ran 2521 tests in 24.804s
>
> FAILED (K
On Wed, Dec 2, 2009 at 13:25, Colin J. Williams wrote:
> The conventional approach, based in the notion of Expected values is
> given here:
> http://en.wikipedia.org/wiki/Variance#Distribution_of_the_sample_variance
>
> I would suggest that numpy should stick with that until the approach
> advoca
I downloaded rc1, and built it on my PPC OS-X 10.4 box, with Python
2.5.2 (from python.org). Then ran the tests. I got:
--
Ran 2521 tests in 24.804s
FAILED (KNOWNFAIL=4, SKIP=1, errors=27, failures=2)
Many of them look like th
On 29-Nov-09 20:15 PM, Robin wrote:
> On Mon, Nov 30, 2009 at 12:30 AM, Colin J. Williams wrote:
>
>> On 29-Nov-09 17:13 PM, Dr. Phillip M. Feldman wrote:
>>
>>> All of the statistical packages that I am currently using and have used in
>>> the past (Matlab, Minitab, R, S-plus) calculate
Anybody have any ideas what is going on here. Although I found a workaround,
I'm concerned about memory leaks
From: numpy-discussion-boun...@scipy.org
[mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Yeates, Mathew C (388D)
Sent: Tuesday, December 01, 200
2009/12/2 Hans Meine :
> PS: Now that I am announcing this, I suddenly have the feeling that I should
> have talked with some lawyer (or Phil) about possible license issues because
> of PyQt. I really hope there will not turn out to be problems with this.
The PyQt license has an explicit provisi
Hi,
I have just uploaded a first release of qimage2ndarray, a tiny python
extension for quickly converting between QImages and numpy.ndarrays
(in both directions). These are very common tasks when programming e.g.
scientific visualizations in Python using PyQt4 as the GUI library.
Similar code
On 12/02/2009 02:49 AM, David Cournapeau wrote:
> Nadav Horesh wrote:
>
>> I got the following errors with a clean installation of numpy (previous
>> installations deleted):
>>
>>
> Actually, there are still some leftover: the file
> numpy/core/test_defmatrix.py does not exist in the tar
On Wed, Dec 2, 2009 at 11:51 AM, David Cournapeau
wrote:
> René Dudfield wrote:
>> We put in some hacks into pygame distutils for removing old files
>> (with msi installer, and for setup.py installer). However I think the
>> long term solution they are thinking of is to allow distutils to
>> unin
René Dudfield wrote:
> We put in some hacks into pygame distutils for removing old files
> (with msi installer, and for setup.py installer). However I think the
> long term solution they are thinking of is to allow distutils to
> uninstall correctly.
I think this is just wishful thinking from peo
On Wed, Dec 2, 2009 at 9:49 AM, David Cournapeau
wrote:
> Nadav Horesh wrote:
>> I got the following errors with a clean installation of numpy (previous
>> installations deleted):
>>
>
> Actually, there are still some leftover: the file
> numpy/core/test_defmatrix.py does not exist in the tarball
On Sat, Nov 28, 2009 at 2:56 PM, David Cournapeau wrote:
> On Sat, Nov 28, 2009 at 10:42 PM, René Dudfield wrote:
>
> >
> > yeah, I completely understand the unfortunate packaging situation (eg,
> some
> > of my packages do not work with this install method).
> >
> > Here is a simple package requ
Olivia Cheronet wrote:
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 132, in
> e>
> import add_newdocs
> File "/usr/lib/python2.5/site-packages/numpy/add_newdocs.py", line 9, in
> le>
> from lib import
Nadav Horesh wrote:
> I got the following errors with a clean installation of numpy (previous
> installations deleted):
>
Actually, there are still some leftover: the file
numpy/core/test_defmatrix.py does not exist in the tarball.
cheers,
David
__
Hello!
I have built numpy (updated to the trunk) for my cygwin (1.5.25) Python (2.5.2).
However, testing fails when I try to import numpy in python (see output below).
I have been searching around for a solution, but everything has failed so far...
I would be grateful for any advice.
Thank you,
I got the following errors with a clean installation of numpy (previous
installations deleted):
Running unit tests for numpy
NumPy version 1.4.0rc1
NumPy is installed in /usr/lib64/python2.6/site-packages/numpy
Python version 2.6.4 (r264:75706, Nov 5 2009, 20:27:15) [GCC 4.3.4]
nose version 0.11
47 matches
Mail list logo