Package reflectometry :: Package model1d :: Package model :: Module layer :: Class SplineLayer

Class SplineLayer

source code


Spline section of reflectometry profile
Instance Methods
 
__init__(self, name="spline", Val=1.0, span=1, uniform=True)
Create a spline layer for a profile.
source code
 
calc(self, thickness, z)
Compute the values for the profile at depth z (scalar or array).
source code

Inherited from _Layer: getValue, setValue, toFloatValue

Method Details

__init__(self, name="spline", Val=1.0, span=1, uniform=True)
(Constructor)

source code 

Create a spline layer for a profile. It has a single tuple v indicating the control values of the spline. The control points are assumed to be equally spaced.

The optional span indicates how many model layers are spanned by this portion of the profile.

TODO: line should pick up it's end points from surrounding layers. TODO: provide methods for adding/deleting points.

Overrides: _Layer.__init__

calc(self, thickness, z)

source code 
Compute the values for the profile at depth z (scalar or array).
Overrides: _Layer.calc