FFTSmooth
From MantidProject
Contents |
Summary
Performs smoothing of a spectrum using various filters.
Properties
| Order | Name | Direction | Type | Default | Description |
|---|---|---|---|---|---|
| 1 | InputWorkspace | Input | Workspace2D | Mandatory | The name of the input workspace. It must have regular x-bins. |
| 2 | OutputWorkspace | Output | Workspace2D | Mandatory | The name of the output workspace. |
| 3 | WorkspaceIndex | Input | integer | Mandatory | The index of the spectrum in the input workspace smoothing. |
| 4 | Filter | Input | String | "Zeroing" | The smoothing method. |
| 5 | Params | Input | String | "" | The parameters for the filter (if more than one - comma separated). |
Description
FFTSmooth uses FFT algorithm to create a Fourier transform of a spectrum, applies a filter to it and transforms it back. The filters remove higher frequencies from the spectrum which reduces the noise.
Currently only one filter is impemented:
Zeroing
- Filter: "Zeroing"
- Params: "n" - an integer greater than 1 meaning that the Fourier coefficients with frequencies outside the 1/n of the original range will be set to zero.
The resulting spectrum has the same size as the original one.
Source Code
Header FFTSmooth.h
Source FFTSmooth.cpp
