Fork me on GitHub

iminuit

Interactive IPython Friendly Mimizer based on SEAL Minuit. (It’s included in the package no need to install it separately)

It is designed from ground up to be fast, interactive and cython friendly. iminuit extract function signature very permissively starting from checking func_code down to last resort of parsing docstring(or you could tell iminuit to stop looking and take your answer). The interface is inspired heavily by PyMinuit and the status printout is inspired by ROOT Minuit. iminuit is mostly compatible with PyMinuit(with few exceptions). Existing PyMinuit code can be ported to iminuit by just changing the import statement.

In a nutshell,:

from iminuit import Minuit
def f(x,y,z):
    return (x-2)**2 + (y-3)**2 + (z-4)**2
m = Minuit(f)
m.migrads()
print m.values #{'x':2,'y':3,'z':4}
print m.errors

If you are interested in fitting a curve/distribution, take a look at probfit.

Download and Install

pip install iminuit

You can find our repository at github.

git clone git://github.com/iminuit/iminuit.git

Tutorial

All the tutorials are in tutorial directory. You can view it online too.

Table Of Contents

Next topic

Full API Documentation

This Page