xboa
|
Gaussian smoothing class applies a smoothing by summing nearby data and weighting according to a truncated Gaussian distribution. More...
Inherits object.
Public Member Functions | |
def | __init__ |
Initialise the smoothing. More... | |
def | smooth |
Smooth the signal. More... | |
Public Attributes | |
sigma | |
range_ | |
norm | |
Private Member Functions | |
def | _smooth_one |
Smooth the point in signal at index i. More... | |
Private Attributes | |
_weights | |
Gaussian smoothing class applies a smoothing by summing nearby data and weighting according to a truncated Gaussian distribution.
The Smoothing function has two parameters
Smoothing near to the boundaries is performed using whatever data is available. Normalisation at the boundaries can be handled in either of two ways
Definition at line 44 of file _gaussian_smoothing.py.
def __init__ | ( | self, | |
sigma, | |||
range_, | |||
adjust_boundary_normalisation | |||
) |
Initialise the smoothing.
Definition at line 54 of file _gaussian_smoothing.py.
def smooth | ( | self, | |
signal | |||
) |
Smooth the signal.
Definition at line 66 of file _gaussian_smoothing.py.
References GaussianSmoothing._smooth_one().
|
private |
Smooth the point in signal at index i.
Definition at line 72 of file _gaussian_smoothing.py.
References GaussianSmoothing._weights, GaussianSmoothing.norm, and GaussianSmoothing.range_.
Referenced by GaussianSmoothing.smooth().
sigma |
Definition at line 55 of file _gaussian_smoothing.py.
Referenced by RefinePeakFinder._peak_fit().
range_ |
Definition at line 56 of file _gaussian_smoothing.py.
Referenced by GaussianSmoothing._smooth_one().
|
private |
Definition at line 58 of file _gaussian_smoothing.py.
Referenced by GaussianSmoothing._smooth_one().
norm |
Definition at line 60 of file _gaussian_smoothing.py.
Referenced by GaussianSmoothing._smooth_one().