| Home | Trees | Indices | Help |
|
|---|
|
|
Collection of fit models.
Assembly implements the park.fit.Objective interface.
See park.assembly for usage.
Instance variables:
These fields are defined for the individual models as well, with degrees of freedom adjusted to the length of the individual data set. If the model is not fitted or the weight is zero, the residual will not be calculated.
The residuals fields are available only after the model has been evaluated.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
residuals combined residuals from all parts |
|
|
Inherited from |
|
| Method Details |
|
Query the weight on a particular model. Set weight to value if value is supplied.
|
Query if a particular model is fitted. Set isfitted to value if value is supplied.
|
Add a model to the end of set. The fitting model can be an instance of park.assembly.Fitness, or a tuple of (park.model.Model,`park.data.Data1D`) :param weight: model weighting (usually 1.0) :param isfitted: whether model should be fit (equivalent to weight 0.)
|
Note: Call this after the parameters have been updated. |
Returns the derivative wrt the fit parameters at point p. Numeric derivatives are calculated based on step, where step is the portion of the total range for parameter j, or the portion of point value p_j if the range on parameter j is infinite. |
Return the covariance matrix at p cov(f,p) = inv(J'J) where J is the Jacobian matrix [df(xi)/dpj] Using the singular value decomposition we have:
J = U S V'
J'J = (U S V')' (U S V')
= V S' U' U S V'
= V S S V'
inv(J'J) = inv(V S S V')
= inv(V') inv(S S) inv(V)
= V inv (S S) V'
Note that this function hangs unexpectedly for some versions of numpy on Windows. Please make sure you are using the latest version. |
Return parameter uncertainty. This is just the sqrt diagonal of covariance matrix inv(J'J) at point p. |
Return an alphabetical list of the fitting parameters. This function is called once at the beginning of a fit, and serves as a convenient place to precalculate what can be precalculated such as the set of fitting parameters and the parameter expressions evaluator. |
Details to send back to the fitting client on an improved fit. status is 'start', 'step' or 'end' depending if this is the first result to return, an improved result, or the final result. [Not implemented] |
Cost function. Evaluate the system for the parameter vector pvec, returning chisq as the cost function to be minimized. Raises a runtime error if the number of fit parameters is different than the length of the vector. |
Interrupt the current function evaluation. Forward this to the currently executing model if possible. |
| Property Details |
residualscombined residuals from all parts
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 16 15:04:05 2009 | http://epydoc.sourceforge.net |