Package reflectometry :: Package model1d :: Package model :: Module calcProfile

Module calcProfile

source code

Functions for constructing a profile.
Functions
 
erf(z)
Compute the erf function over the array z
source code
 
blend(z, rough)
blend function
source code
 
build_profile(depth, rough, layers, z, max_rough=3.0)
Build a profile.
source code
Function Details

blend(z, rough)

source code 

blend function

Given a Gaussian roughness value, compute the portion of the neighboring profile you expect to find in the current profile at depth z.

build_profile(depth, rough, layers, z, max_rough=3.0)

source code 

Build a profile.
   depth     - depth of the layers (first and last values ignored)
   rough     - roughness of the interfaces (one less than d)
   layers    - objects which calculate profile for a segment
   z         - places to compute the profile (must be sorted)
   max_rough - roughness is limited by layer depth so that max_rough
               standard deviations fit within the layer.