Package park :: Package modelling :: Module data

Module data

source code

Park 1-D data objects.

The class Data1D represents simple 1-D data objects, along with an ascii file loader. This format will work well for many uses, but it is likely that more specialized models will have their own data file formats.

The minimal data format for park must supply the following methods:

residuals(fn)
returns the residuals vector for the model function.
residuals_deriv(fn_deriv,par)
returns the residuals vector for the model function, and for the derivatives with respect to the given parameters.

The function passed is going to be model.eval or in the case where derivatives are available, model.eval_deriv. Normally this will take a vector of dependent variables and return the theory function for that vector but this is only convention. The fitting service only uses the parameter set and the residuals method from the model.

Model and data are combined to make a park.assembly.Fitness object, which defines the complete interface required to match model and data. This may be a more convenient level to integrate with park.

The park GUI will make more demands on the interface, but the details are not yet resolved.

Classes
  Data1D
Data representation for 1-D fitting.