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

Class CosineLayer

source code


Cosine section of reflectometry profile
Instance Methods
 
__init__(self, name="Cosine", Val=1.0, span=1)
Create a Cosine 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="Cosine", Val=1.0, span=1)
(Constructor)

source code 

Create a Cosine layer for a profile. It has a single tuple v indicating the 'offset', 'amplitude', 'wavelength', and 'phase' of the Cosine.

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

Overrides: _Layer.__init__

calc(self, thickness, z)

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