ExponentialCorrection

From MantidProject

Jump to: navigation, search

Contents

Summary

Corrects the data in a workspace by the value of an exponential 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 C0 Input double 1.0 The value by which the entire exponent calculation is multiplied (see formula below).
4 C1 Input double 0.0 The value by which the x value is multiplied prior to exponentiation (see formula below).
5 Operation Input string Divide Whether to divide (the default) or multiply the data by the correction function.

Description

This algorithm corrects the data and error values on a workspace by the value of an exponential function of the form C0e − C1x. This formula is calculated for each data point, with the value of x being the mid-point of the bin in the case of histogram data. The data and error values are either divided or multiplied by the value of this function, according to the setting of the Operation property.

Source Code

Header ExponentialCorrection.h

Source ExponentialCorrection.cpp

Personal tools
Create a book