hat you create at least the gradient of
> the function (I didn't create a class that can numerically derive a fit
> function).
> For instance
> http://projects.scipy.org/scipy/scikits/wiki/Optimization/tutorial#FittingData
> gives you an example.
>
> Matthieu
>
> 2007
Hi,
I have (x,y) data that I want to fit to the formula
y = a * x^b
to determine a and b. How can I do it? The current
manual only lists linear fit and polynomial fit.
Or, putting it in a more general setting, is there a
module to do fitting to an arbitrary function?
It would be something like
p
Hi,
I have a histogram with orders of magnitude difference in counts of each
bin. I want to use a log yscale in plotting it. But there are bins with 0
counts. What's the best way to plot it? I've read the log_bar.py example
which uses bar() for plotting. It works when I pull it into a script. But
Hello,
Thanks to quick hints/tips from Eric and Lionel, I have a module for
conditional plotting and histogramming without defining a table type!
It works with numerical arrays quite well, but does not work on string
arrays in conditions.
I paste the code below since they are quite short. Hope th
Hi Lionel,
Thanks for the tips. The histogram plot I need can be done by hist(x). :)
I tried your commands and I like the find() function! However,
xi = x[ind]
failed with an "IndexError: invalid index". The same operation can be done with
xi = array([x[i] for i in ind])
but if a numpy function c
2007/9/5, Eric Firing <[EMAIL PROTECTED]>:
> Ping Yeh wrote:
> [snip]
> >
> > If there is no existing modules for this I'll go ahead write one. :)
>
> There is nothing quite like this. As a starting point, though, you
> should become familiar with the abil
Hi,
I checked the manual and briefly searched the mailing list but did not
find this... Is there a table-like data type with rows as events and
columns as attributes that I can make plots with? This is called
"ntuple" in the high energy physics community.
Let me illustrate with an example. Assume