Package reflectometry :: Package reduction :: Module smoothcor :: Class Smooth

Class Smooth

source code


Moving window 1-D polynomial least squares smoothing filter.

The parameters are the polynomial order and the window size. The window size is the number of consecutive points used to smooth the data. The window size must be odd.

Instance Methods
 
__init__(self, **kw)
Define the smoothing polynomial.
source code
 
apply(self, data)
Apply the correction to the data
source code
 
__str__(self)
Name of the correction, and enough detail to record in the reduced data log.
source code

Inherited from correction.Correction: __call__, __or__, __ror__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Variables
  properties = ['degree', 'span']
  degree = 2
Polynomial order for smoothing
  span = 11
Number of points used to fit smoothing polynomial
Properties

Inherited from object: __class__

Method Details

__init__(self, **kw)
(Constructor)

source code 
Define the smoothing polynomial.
Overrides: object.__init__

apply(self, data)

source code 
Apply the correction to the data
Overrides: correction.Correction.apply

__str__(self)
(Informal representation operator)

source code 
Name of the correction, and enough detail to record in the reduced data log.
Overrides: object.__str__
(inherited documentation)