Package reflectometry :: Package reduction :: Module corrections :: Function smooth :: 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
 
__call__(self, data)
Apply the correction to the data
source code
 
__str__(self)
str(x)
source code

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__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)