Package reflectometry :: Package model1d :: Package examples :: Module demo_chisq_surfaces

Module demo_chisq_surfaces

source code

Pure numeric python implementation of Parratt's recursion for computing reflectivity as a function of Q and lambda.
Classes
  Chisq
Compute chisq(p) given f(p),y,dy
  Demo_Model
Example model.
Functions
 
theory(Q, d, rho)
Compute reflectometry theory from using parratt formalism
source code
 
sampledata(Q, d, rho)
Generate sample data given the model Q,d,rho
source code
 
build_landscape(fn, x, y, dim=(50,50))
Construct a 2D landscape for the function f((x,y)) over x=[lo, hi], y=[lo,hi] with the number of steps dim=(nx,ny) defaulting to 50x50
source code
 
plot_mesh(x, y, Z)
Plot a regular mesh z with grid spacing x,y
source code
 
demo_landscape()
Plot the chisq landscape of the demo model
source code
Variables
  demo_model = Demo_Model()
  __id__ = "$Id: demo_parratt.py 37 2006-02-10 22:13:51Z pkienzl...
Variables Details

__id__

Value:
"$Id: demo_parratt.py 37 2006-02-10 22:13:51Z pkienzle $"