Package reflectometry :: Package model1d :: Package examples :: Module demo_chisq_surfaces :: Class Demo_Model

Class Demo_Model

source code

Example model. Defines a reflectometry model object for a structure and a a dataset.

model(p) returns f(x;p) corresponding to dataset measured points. model.goodness(p) returns chisq for the given parameters. model.x indicates the measured points model.y, model.dy is the measurement and uncertainty at the points model.rho,model.d are the parameters to the reflectometry model
Instance Methods
 
__init__(self)
Create a new instance of the demo model
source code
 
__call__(self, p)
Evaluate the model at parameter vector p, returning f(x;p)
source code