473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2881
"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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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,...

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.