[Numpy-tickets] [NumPy] #638: var should take absolute value for complex numbers.
NumPy
numpy-tickets@scipy....
Sun Dec 30 01:21:31 CST 2007
#638: var should take absolute value for complex numbers.
-------------------------+--------------------------------------------------
Reporter: akumar | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.5
Component: numpy.core | Version: none
Severity: normal | Resolution:
Keywords: var complex |
-------------------------+--------------------------------------------------
Comment (by rkern):
Hmm. You'll note, though, that the result is a matrix, not a single real
or complex value. It is the result of finding the full covariance matrix
of the 2-vector (real, imag). You really want to use {{{cov()}}}, not
{{{var()}}}. Probably, we should just disallow complex values for
{{{var()}}}.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/638#comment:5>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list