PolynomialCorrection
From MantidProject
Contents |
Summary
Corrects the data in a workspace by the value of a polynomial function which is evaluated at the X value of each data point.
Properties
| Order | Name | Direction | Type | Default | Description |
|---|---|---|---|---|---|
| 1 | InputWorkspace | Input | MatrixWorkspace | Mandatory | The name of the workspace to apply the correction to. |
| 2 | OutputWorkspace | Output | MatrixWorkspace | Mandatory | The name to use for the corrected workspace (can be the same as the input one). |
| 3 | Coefficients | Input | double list | Mandatory | An Array Property containing the coefficients of the polynomial correction function in ascending powers of X. Can be given as a comma separated list in string form. |
Description
Corrects the data and error values on a workspace by the value of a polynomial function:
- C0 + C1x + C2x2 + ...
which is evaluated at the x value of each data point (using the mid-point of the bin as the x value for histogram data. The data and error values are multiplied by the value of this function. The order of the polynomial is determined by the length of the Coefficients property, which can be of any length.
Source Code
Header PolynomialCorrection.h
Source PolynomialCorrection.cpp
