473,480 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

nonlinear interpolation

I want to interpolate a data distribution with a function depending on
various parameters; the function
can be a Gaussian, a Breit-Wigner, a custom function. Where should I
look? I am getting lost
between matplotlib, numeric, numpy, scientific python, scipy, etc.
etc.
Any pointer would be well received :)

Michele Simionato

Mar 12 '07 #1
3 2883
"Michele Simionato" <mi***************@gmail.comwrites:
Any pointer would be well received :)
Dunno about those libs but it helps to understand the mathematical
options. Numerical Recipes by Teukolsky et al has understandable,
cookbook-like advice about this stuff. I'm told that true numerics
gurus scoff at it but it's at least a start.
Mar 12 '07 #2
On Mar 12, 5:28 pm, Paul Rubin <http://phr...@NOSPAM.invalidwrote:
"Michele Simionato" <michele.simion...@gmail.comwrites:
Any pointer would be well received :)

Dunno about those libs but it helps to understand the mathematical
options. Numerical Recipes by Teukolsky et al has understandable,
cookbook-like advice about this stuff. I'm told that true numerics
gurus scoff at it but it's at least a start.
No, I know about Numerical Recipes, I want an already-made solution.
For instance I found one here
http://dirac.cnrs-orleans.fr/Scienti...es-module.html
but I wonder if I should use numpy or something else, since
I am not following the progresses in numerical Python these days.

P.S. sorry for the multiple post, google tricked me.

Mar 12 '07 #3
Michele Simionato wrote:
On Mar 12, 5:28 pm, Paul Rubin <http://phr...@NOSPAM.invalidwrote:
>"Michele Simionato" <michele.simion...@gmail.comwrites:
>>Any pointer would be well received :)
Dunno about those libs but it helps to understand the mathematical
options. Numerical Recipes by Teukolsky et al has understandable,
cookbook-like advice about this stuff. I'm told that true numerics
gurus scoff at it but it's at least a start.

No, I know about Numerical Recipes, I want an already-made solution.
For instance I found one here
http://dirac.cnrs-orleans.fr/Scienti...es-module.html
but I wonder if I should use numpy or something else, since
I am not following the progresses in numerical Python these days.
It sounds like you want nonlinear curve fitting rather than interpolation. I do
recommend using numpy as the underlying array package, but it does not provide
any curve fitting itself. The 2.7 branch of ScientificPython can work with numpy
instead of Numeric, if you like. See the README.

http://sourcesup.cru.fr/projects/scientific-py/

scipy also has a variety of curve fitting routines at the expense of a more
involved install. scipy.optimize.leastsq() might be sufficient for you, but the
scipy.odr package is much more flexible (but get scipy from SVN for that; the
latest release has some unfortunate bugs in that package).

--
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

Mar 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3706
by: Mikito Harakiri | last post by:
I wonder if WITH RECURSIVE MaryAncestor(anc,desc) AS ( (SELECT parent as anc, child as desc FROM ParentOf WHERE desc = "Mary") UNION (SELECT A1.anc, A2.desc FROM MaryAncestor A1, MaryAncestor...
14
5174
by: Charles Banas | last post by:
I'm not sure if this is the right place to ask about this, but I've seen several posts in the past regarding Akima's Bivariate Interpolations routines, and i'm wondering if someone can give me some...
3
3864
by: Jonas Ernst | last post by:
Hi, Can somebody give me some hints how to do a line interpolation without using floating point arithemtics? The function shall do a linear interpolation between 2 points (line interp?) and...
7
2547
by: laniik | last post by:
Hi, I am looking for a way to do nonlinear minimization in c++ (c is acceptable also) with constraints (a la minimize f() with parameters x,y such that x+y<1) or somthing.. I was wondering if...
5
3776
by: xandra | last post by:
i understood the concept of interpolation search. but i couldn't understand what would be the steps for that search. for example, if i'm searching for J in this file A A B E F H J M N N N N O P P...
0
1267
by: MonkeeSage | last post by:
There are several string interpolation functions, as well as string.Template. But here's yet another. This one emulates ruby's inline interpolation syntax (using #{}), which interpolates strings as...
14
2482
nurulshidanoni
by: nurulshidanoni | last post by:
DEAL ALL EXPERTS, How can i write random nonlinear function? Let say, the nonlinear is 2 x power of 3. But , I want the random function of nonlinear. Thank you. Ashida.
1
2117
by: Uwe Kotyczka | last post by:
Hallo, sorry for multiposting, but I am really looking for some hint to solve my problem. And no, I don't use Matlab, but maybe the matlab people have an idea nevertheless. I have to solve a...
2
2087
by: Federico Zenith | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everybody, I am looking into a problem that probably someone had before, so I hope I can avoid reinventing the wheel... I am looking into...
0
6912
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7052
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6981
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4790
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
565
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
188
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.