To provide the most recent news and documentation www.pymvpa.org reflects the development 2.0 series (renamed 0.6 series) of PyMVPA. If you are interested in the documentation of the previous stable 0.4 series of PyMVPA, please visit v04.pymvpa.org.

mvpa2.misc.fx.fit2histogram

mvpa2.misc.fx.fit2histogram(X, fx, params, nbins=20, x_range=None)

Fit a function to multiple histograms.

First histogram is computed for each data row vector individually. Afterwards a custom function is fitted to the binned data.

Parameters :

X : array-like

Data (nsamples x nfeatures)

fx : functor

Function to be fitted. Its interface has to comply to the requirements as for least_sq_fit.

params : tuple

Initial parameter values.

nbins : int

Number of histogram bins.

x_range : None or tuple

Range spanned by the histogram bins. By default the actual mininum and maximum values of the data are used.

Returns :

tuple :

(histograms (nsampels x nbins),

bin locations (left border), bin width, output of least_sq_fit)

Previous topic

mvpa2.misc.fx.dual_positive_gaussian

Next topic

mvpa2.misc.fx.least_sq_fit

NeuroDebian

NITRC-listed