\(\renewcommand\AA{\unicode{x212B}}\)

ResetNegatives v1

../_images/ResetNegatives-v1_dlg.png

ResetNegatives dialog.

Table of Contents

Summary

Reset negative values to something else.

Properties

Name Direction Type Default Description
InputWorkspace Input MatrixWorkspace Mandatory An input workspace.
OutputWorkspace Output MatrixWorkspace Mandatory An output workspace.
AddMinimum Input boolean True Add the minimum value of the spectrum to bring it up to zero.
ResetValue Input number 0 Reset negative values to this number (default=0)

Description

This algorithm will search through the input workspace for values less than zero and make them positive according to the properties. If AddMinimum is “true” then all values will have \(-1*min\) for the spectrum added to them if the minimum is less than zero. Otherwise all values that are less than zero will be set to ResetValue which has a default of 0.

Categories: AlgorithmIndex | CorrectionFunctions\SpecialCorrections

Source

C++ header: ResetNegatives.h

C++ source: ResetNegatives.cpp