PowerLawCorrection

From MantidProject

Jump to: navigation, search

Contents

Summary

Corrects the data and error values on a workspace by the value of an exponential function which is evaluated at the X value of each data point: c0*x^C1. The data and error values are multiplied by the value of this function.

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 calculation is multiplied (see formula below).
4 C1 Input double 0.0 The power by which the x value is raised (see formula below).

Description

This algorithm corrects the data and error values on a workspace by the value of an function of the form  C0 \times x^{C1} . 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 multiplied by the value of this function.

Source Code

Header PowerLawCorrection.h

Source PowerLawCorrection.cpp

Personal tools
Create a book