[Numpy-discussion] Removing numpy numpy-1.1.0 in Python 2.5

2010-09-21 Thread Wayne Watson
to install numpy 1.2.0. Try sentuser.py to make sure it runs properly. If not, contact me. == -- 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

Re: [Numpy-discussion] Removing numpy numpy-1.1.0 in Python 2.5

2010-09-21 Thread Wayne Watson
:38 PM, josef.p...@gmail.com wrote: On Tue, Sep 21, 2010 at 7:01 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I may have bounced a similar problem around here a few months ago, but this one is a bit more important to get an answer for. I'm about to distribute some report programs

[Numpy-discussion] Changing a matrix element into a scalar

2010-08-03 Thread Wayne Watson
How do I access 1.2 in such a way as to end up with a float? I keep getting a matrix. from numpy import matrix m = matrix([[1.2],[2.3]]) -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz

Re: [Numpy-discussion] Changing a matrix element into a scalar

2010-08-03 Thread Wayne Watson
to access an individual element: In [1]: from numpy import matrix In [2]: m = matrix([[1.2],[2.3]]) In [3]: m[0,0] Out[3]: 1.2 -paul -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Wayne Watson Sent: Tuesday

Re: [Numpy-discussion] Solving a NLLSQ Problem by Pieces?

2010-06-27 Thread Wayne Watson
his subject well, then bringing some extra knowledge to the process helps. As I understand it, he solves parameters in A, then uses them in B, and so on. I guess that's a reasonable way to do it. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015

Re: [Numpy-discussion] Solving a NLLSQ Problem by Pieces?

2010-06-27 Thread Wayne Watson
Found hugin (google), but I think it's a bit too general for my current interests. You might enjoy an optimization video course from Stanford Univ on the web. http://see.stanford.edu/see/lecturelist.aspx?coll=17005383-19c6-49ed-9497-2ba8bfcfe5f6 -- Wayne Watson (Watson Adventures

[Numpy-discussion] Solving a NLLSQ Problem by Pieces?

2010-06-26 Thread Wayne Watson
understand it, he solves parameters in A, then uses them in B, and so on. I guess that's a reasonable way to do it. -- 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

Re: [Numpy-discussion] Numerical Recipes (for Python)?

2010-06-04 Thread Wayne Watson
in numpy/scipy/scikits/IRAF/whatever. Anne -- 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 Science

Re: [Numpy-discussion] Numerical Recipes (for Python)?

2010-06-04 Thread Wayne Watson
/IRAF/whatever. Anne -- 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 Science and democracy

[Numpy-discussion] Coordinate Camera Optics for Astrophotography -- sin(zenith)

2010-06-03 Thread Wayne Watson
properties of an objective lens that may have non-linear features. I can provide an excerpt from the paper, if the above is not clear. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz

Re: [Numpy-discussion] Coordinate Camera Optics for Astrophotography -- sin(zenith)

2010-06-03 Thread Wayne Watson
essentially no change? Friedrich ___ 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

Re: [Numpy-discussion] Numerical Recipes (for Python)?

2010-06-03 Thread Wayne Watson
/scipy/scikits/IRAF/whatever. Anne -- 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 Science and democracy are based

[Numpy-discussion] Numerical Recipes (for Python)?

2010-06-01 Thread Wayne Watson
Subject is a book title from some many years ago, I wonder if it ever got to Python? I know there were C and Fortran versions. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39

Re: [Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-29 Thread Wayne Watson
http://mail.scipy.org/mailman/listinfo/numpy-discussion ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA

Re: [Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-29 Thread Wayne Watson
On 5/28/2010 9:16 PM, David Goldsmith wrote: On Fri, May 28, 2010 at 8:31 PM, Anne Archibald aarch...@physics.mcgill.ca wrote: On 28 May 2010 23:59, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: That opened a few avenues. After reading this, I went on a merry search with Google. I

[Numpy-discussion] Gauss-Newton Method in Python?

2010-05-28 Thread Wayne Watson
Is Subject method available in Python? -- 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 There are no statues or memorials

Re: [Numpy-discussion] Gauss-Newton Method in Python?

2010-05-28 Thread Wayne Watson
-Newton when that is appropriate to the problem. Chuck On Fri, May 28, 2010 at 12:36 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Is Subject method available in Python? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N

[Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-28 Thread Wayne Watson
Suppose I have a 640x480 pixel video chip and would like to find star images on it, possible planets and the moon. A possibility of noise exits, or bright pixels. Is there a known method for finding the centroids of these astro objects? -- Wayne Watson (Watson Adventures, Prop

Re: [Numpy-discussion] Finding Star Images on a Photo (Video chip) Plate?

2010-05-28 Thread Wayne Watson
...@gmail.com wrote: On Fri, May 28, 2010 at 5:45 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Suppose I have a 640x480 pixel video chip and would like to find star images on it, possible planets and the moon. A possibility of noise exits, or bright pixels

Re: [Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4?

2010-03-29 Thread Wayne Watson
] On Behalf Of Wayne Watson Sent: Friday, March 26, 2010 5:44 PM To:mailto:numpy-discussion@scipy.org numpy-discussion@scipy.orgmailto:numpy-discussion@scipy.org Subject: [Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4? I wrote a program in Python 2.5 under Win7 and it runs

[Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4?

2010-03-26 Thread Wayne Watson
ages\scipy\stats\stats.py", line 191, in module import scipy.special as special File "C:\Python25\lib\site-packages\scipy\special\__init__.py", line 22, in module from numpy.testing import NumpyTest ImportError: cannot import name NumpyTest Comments? -- Wayne Watso

Re: [Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4?

2010-03-26 Thread Wayne Watson
describe below on the first attempt. For some reason unknown to me, it works on the second try. Switching to Numpy 1.3 is the best solution to the error. -paul From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Wayne Watson Sent

[Numpy-discussion] SciPy Mail List and Contacting Dave Kuhlman

2010-02-28 Thread Wayne Watson
Google shows there is a mail list for SciPy, but when I go to the web page it shows GMANE, and various feeds for SciPy-Dev and User. Maybe I'm missing something? Information about gmane.comp.python.scientific.user The archive for this list can be read the following ways: On the web, using

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-18 Thread Wayne Watson
On 2/17/2010 10:00 PM, Scott Sinclair wrote: On 18 February 2010 05:30, Wayne Watsonsierra_mtnv...@sbcglobal.net wrote: ... I'm on win7's Add/Remove numpy. No scipy. I just checked the version via import and it's 0.6.0. You can download the latest NumPy and SciPy installers

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-17 Thread Wayne Watson
I don't think I'm on the current version. Does it make sense to move ahead? Is there a way to suppress the messages? On 2/16/2010 9:25 PM, josef.p...@gmail.com wrote: On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Hi, I'm working on a 1800+ line

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-17 Thread Wayne Watson
On 2/16/2010 10:01 PM, Scott Sinclair wrote: On 17 February 2010 07:25,josef.p...@gmail.com wrote: On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Hi, I'm working on a 1800+ line program that uses tkinter. Here are the messages I started getting

[Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread Wayne Watson
I normally use IDLE on Win, but recently needed to go to command prompt to see all error messages. When I did, I was greeted by a host of deprecation and Numpy messages before things got running. The program otherwise functioned OK, after I found the problem I was after. Are these messages a

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-16 Thread Wayne Watson
\Wayne\Sandia_Meteors\Sentinel_Development\Development_Sentuser+ Utilities\sentuser\sentuser_20080716NoiseStudy7.py, line 1990, in Process root.mainloop() File C:\Python25\lib\lib-tk\Tkinter.py, line 1023, in mainloop On 2/16/2010 4:32 PM, David Cournapeau wrote: Hi Wayne, Wayne Watson

Re: [Numpy-discussion] Installed NumPy and MatPlotLib in the Wrong Order. How uninstall MPL?

2010-02-06 Thread Wayne Watson
books I've used. I think I'll look at them again. Google didn't even show anything. Thanks for the response. I'll try to clear manually the locations we've mentioned. On 2/5/2010 9:01 PM, josef.p...@gmail.com wrote: On Fri, Feb 5, 2010 at 10:37 PM, Wayne Watson sierra_mtnv...@sbcglobal.net

[Numpy-discussion] Installed NumPy and MatPlotLib in the Wrong Order. How uninstall MPL?

2010-02-05 Thread Wayne Watson
See Subject. I'm working in IDLE in Win7. It seems to me MPL gets stuck in site-packages under C:\Python25. Maybe this is as simple as deleting the entry? Well, yes there's a MPL folder under site-packages and an info MPL file of 540 bytes. There are also pylab.py, pyc,and py0 files under

[Numpy-discussion] Module Index for numpy?

2010-01-17 Thread Wayne Watson
I was just looking at the (Win) Python documentation via the Help on IDLE, and a Global Module Index. Does anything like that exist for numpy, matplotlib, scipy? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std

[Numpy-discussion] Percentiles and Box Plots

2010-01-15 Thread Wayne Watson
for Box plots. I don't need to draw anything. -- 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 I was thinking about how

Re: [Numpy-discussion] Percentiles and Box Plots

2010-01-15 Thread Wayne Watson
Thanks. I'll give it a try. Is this something fairly new? Robert Kern wrote: On Fri, Jan 15, 2010 at 17:06, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I have from about 90 to 600 points of different data sets that I would like to find the 10th and 90th percentile for. Does

[Numpy-discussion] cos -- NameError: global name 'cos' is not defined

2009-12-21 Thread Wayne Watson
, NameError: global name 'cos' is not defined, but the sin() above it does not? They are both built-in functions. -- 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

Re: [Numpy-discussion] cos -- NameError: global name 'cos' is not defined

2009-12-21 Thread Wayne Watson
: On Mon, Dec 21, 2009 at 9:40 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: In this code, ===start import math import numpy as np from numpy import matrix def sinD(D): # given in degrees, convert to radians return sin(radians(D)) def cosD(D): return cos(radians(D

Re: [Numpy-discussion] cos -- NameError: global name 'cos' is not defined

2009-12-21 Thread Wayne Watson
to clear the namespace before it runs the program. If not, yikes! Robert Kern wrote: On Mon, Dec 21, 2009 at 11:40, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: In this code, ===start import math import numpy as np from numpy import matrix def sinD(D): # given in degrees

Re: [Numpy-discussion] cos -- NameError: global name 'cos' is not defined

2009-12-21 Thread Wayne Watson
josef.p...@gmail.com wrote: On Mon, Dec 21, 2009 at 6:11 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: ... ) print np.sin(2.2) I've been assuming that IDLE clears the namespace. It's quite possible that I get anomalous results as I move between Run the program via

Re: [Numpy-discussion] cos -- NameError: global name 'cos' is not defined

2009-12-21 Thread Wayne Watson
I may have inadvertently made a slip between using script versus shell. What I'm getting at it that the namespace is the same for both the editor window and shell window. I find that a little bizarre. I would have expected each Run from the editor to clear all modules, and only load those

Re: [Numpy-discussion] cos -- NameError: global name 'cos' is not defined

2009-12-21 Thread Wayne Watson
Thanks, but I think I've got this under control now, and am moving on. Robert Kern wrote: On Mon, Dec 21, 2009 at 13:44, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Yes, one can get both sin and cos via the interactive shell, if math is imported as you have done. However, I thought

[Numpy-discussion] help(numpy.dot) Hmmm.

2009-12-20 Thread Wayne Watson
I've just become acquainted with the help command in WinXP IDLE. help(numyp.sin) works fine. What's going on with dot? help(numpy.core.multiarray.dot) Help on built-in function dot in module numpy.core.multiarray: dot(...) Is there help for dot? -- Wayne Watson (Watson

Re: [Numpy-discussion] help(numpy.dot) Hmmm.

2009-12-20 Thread Wayne Watson
1.2.0. Did you find the description in the reference manual? Charles R Harris wrote: On Sun, Dec 20, 2009 at 7:37 PM, Wayne Watson sierra_mtnv...@sbcglobal.net mailto:sierra_mtnv...@sbcglobal.net wrote: I've just become acquainted with the help command in WinXP IDLE. help

Re: [Numpy-discussion] help(numpy.dot) Hmmm.

2009-12-20 Thread Wayne Watson
wrote: On Sun, Dec 20, 2009 at 22:44, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: 1.2.0. Did you find the description in the reference manual? No, he found it using help(numpy.dot) using a more recent version of numpy. I highly recommend upgrading. -- Wayne Watson

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-19 Thread Wayne Watson
drawn a distinction between dot product and scalar product, that, when one is talking about Euclidean vectors, just isn't there: in that context, they are one and the same thing. DG On Fri, Dec 18, 2009 at 9:29 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I'll amend that. I

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-19 Thread Wayne Watson
Dag Sverre Seljebotn wrote: Wayne Watson wrote: I'm trying to compute the angle between two vectors in three dimensional space. For that, I need to use the scalar (dot) product , according to a calculus book (quoting the book) I'm holding in my hands right now. I've used dot

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-19 Thread Wayne Watson
: On 12/19/2009 11:45 AM, Wayne Watson wrote: A 4x1, 1x7, and 1x5 would be examples of a 1D array or matrix, right? Are you saying that instead of using a rotational matrix ... that I should use a 2-D array for rotCW? So why does numpy have a matrix class? Is the class only used when working

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-19 Thread Wayne Watson
OK, so what's your recommendation on the code I wrote? Use shape 0xN? Will that eliminate the need for T? I'll go back to Tenative Python, and re-read dimension, shape and the like. Charles R Harris wrote: On Sat, Dec 19, 2009 at 9:45 AM, Wayne Watson sierra_mtnv...@sbcglobal.net

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-19 Thread Wayne Watson
That's for sure! :-) Charles R Harris wrote: On Sat, Dec 19, 2009 at 10:38 AM, Wayne Watson sierra_mtnv...@sbcglobal.net mailto:sierra_mtnv...@sbcglobal.net wrote: Yes, flat sounds useful here. However, numpy isn't bending over backwards to tie in conventional mathematical

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-19 Thread Wayne Watson
live in. Thanks to all on this thread. Christopher Barker wrote: Wayne Watson wrote: Yes, flat sounds useful here. However, numpy isn't bending over backwards to tie in conventional mathematical language into it. exactly -- it isn't bending over at all! (well a little -- see below

[Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-18 Thread Wayne Watson
Is it possible to calculate a dot product in numpy by either notation (a ^ b, where ^ is a possible notation) or calling a dot function (dot(a,b)? I'm trying to use a column matrix for both vectors. Perhaps, I need to somehow change them to arrays? -- Wayne Watson (Watson

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-18 Thread Wayne Watson
That should do it. Thanks. How do I get the scalar result by itself? Keith Goodman wrote: On Fri, Dec 18, 2009 at 1:51 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Is it possible to calculate a dot product in numpy by either notation (a ^ b, where ^ is a possible notation

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-18 Thread Wayne Watson
Very good. Is there a scalar product in numpy? Keith Goodman wrote: On Fri, Dec 18, 2009 at 2:51 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: That should do it. Thanks. How do I get the scalar result by itself? np.dot(x.T,x)[0,0] 14 or x = np.array

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-18 Thread Wayne Watson
to think it's a common enough need that there would be something available like sumsq(). Keith Goodman wrote: On Fri, Dec 18, 2009 at 3:22 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Is there a scalar product in numpy? Isn't that the same thing as a dot product? np.dot doesn't

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-18 Thread Wayne Watson
is very oriented towards vectors and matrices. Surprisingly it doesn't seem to be available in numpy's bag of tricks. David Goldsmith wrote: On Fri, Dec 18, 2009 at 3:40 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Well, they aren't quite the same. If a is the length of A, and b

[Numpy-discussion] objects are not aligned. Matrix and Array

2009-12-18 Thread Wayne Watson
) ValueError: objects are not aligned end msgs=== Why the msg? The types look alike and each array/matrix contains two elements.. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-18 Thread Wayne Watson
Nicely done. Alan G Isaac wrote: On 12/18/2009 7:12 PM, Wayne Watson wrote: The point of the scalar product is to produce theta. As David said, that is just NumPy's `dot`. a = np.array([0,2]) b = np.array([5,0]) theta = np.arccos(np.dot(a,b)/np.sqrt(np.dot(a,a)*np.dot(b,b

Re: [Numpy-discussion] dot function or dot notation, matrices, arrays?

2009-12-18 Thread Wayne Watson
I'll amend that. I should have said, Dot's all folks. -- Bugs Bunny -- 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

Re: [Numpy-discussion] objects are not aligned. Matrix and Array

2009-12-18 Thread Wayne Watson
elements.. Chuck ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion -- Wayne Watson

Re: [Numpy-discussion] [AstroPy] Rotating and Transforming Vectors--Flight Path of a Celestial Body

2009-12-17 Thread Wayne Watson
a from as above to get all the classes, does it give all the capabilities that just using import numpy does? Anne Archibald wrote: 2009/12/17 Wayne Watson sierra_mtnv...@sbcglobal.net: I'm just getting used to the math and numpy library, and have begun working on a problem

[Numpy-discussion] A Simple Example of histogram Using Range?

2009-11-28 Thread Wayne Watson
it works? -- 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

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

2009-11-28 Thread Wayne Watson
David Goldsmith wrote: On Fri, Nov 27, 2009 at 9:25 PM, Wayne Watson sierra_mtnv...@sbcglobal.net mailto:sierra_mtnv...@sbcglobal.net wrote: I actually wrote my own several days ago. When I began getting myself more familiar with numpy, I was hoping there would be an easy to use

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

2009-11-28 Thread Wayne Watson
How would I do that? Anne Archibald wrote: 2009/11/28 Wayne Watson sierra_mtnv...@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

Re: [Numpy-discussion] Producing a Histogram When Bins Are Known

2009-11-28 Thread Wayne Watson
list? There certainly is: https://lists.sourceforge.net/lists/listinfo/matplotlib-users And yes, that is the place for such questions. HTH, -Chris -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std

Re: [Numpy-discussion] Producing a Histogram When Bins Are Known

2009-11-27 Thread Wayne Watson
, I've all too often had to write my own histogram programs for this, FORTRAN, etc. My data is from a 640x480 collection of b/w pixels, which a processor has binned from 0-255, so I don't want repeat doing a histogram on 307K data points. Vincent Schut wrote: Wayne Watson wrote: I have

Re: [Numpy-discussion] Producing a Histogram When Bins Are Known

2009-11-27 Thread Wayne Watson
need to understand better. . -- 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

Re: [Numpy-discussion] Producing a Histogram When Bins Are Known

2009-11-27 Thread Wayne Watson
Lots of good suggestions. I'll pull them into a document for further reference. -- 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

Re: [Numpy-discussion] Producing a Histogram When Bins Are Known

2009-11-27 Thread Wayne Watson
-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

Re: [Numpy-discussion] Producing a Histogram When Bins Are Known

2009-11-27 Thread Wayne Watson
-- 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

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

2009-11-27 Thread Wayne Watson
How do I compute avg, std dev, min, max and other simple stats if I only know the frequency distribution? -- 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

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

2009-11-27 Thread Wayne Watson
, the statistics are produced directly from it. josef.p...@gmail.com wrote: On Fri, Nov 27, 2009 at 9:47 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: How do I compute avg, std dev, min, max and other simple stats if I only know the frequency distribution? If you are willing to assign

[Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
described in some detail? Normalized? The histogram x-axis goes from 0 to 4.5. How does that happen? Is v is two dimensional? What if it's one dimensional? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
josef.p...@gmail.com wrote: On Thu, Nov 26, 2009 at 2:44 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I decided to try some example code from Subject. import numpy import pylab # Build a vector of 1 normal deviates with variance 0.5^2 and mean 2 mu, sigma = 2, 0.5 v

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
I guess the answer is easy about why a plot is not produced. The remark in the histogram line says this will not work in numpy. Oh, well. Wayne Watson wrote: josef.p...@gmail.com wrote: On Thu, Nov 26, 2009 at 2:44 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I decided

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
move the drawing area slightly. Zoom, pencil, seems pretty offbeat. Pauli Virtanen wrote: to, 2009-11-26 kello 15:08 -0800, Wayne Watson kirjoitti: I guess the answer is easy about why a plot is not produced. The remark in the histogram line says this will not work in numpy. Oh, well

[Numpy-discussion] Producing a Histogram When Bins Are Known

2009-11-26 Thread Wayne Watson
I have a list that already has the frequencies from 0 to 255. However, I'd like to make a histogram that has say 32 bins whose ranges are 0-7, 8-15, ... 248-255. Is it possible? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N

Re: [Numpy-discussion] NumPy Histogram for Tentative NumPy Tutorial Questions

2009-11-26 Thread Wayne Watson
josef.p...@gmail.com wrote: On Thu, Nov 26, 2009 at 9:48 PM, josef.p...@gmail.com wrote: On Thu, Nov 26, 2009 at 8:18 PM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Yes, I'm just beginning to deal with the contents of NumPy, SciLab, and SciPy. They all have seemed part