Click or drag to resize

SNIP_Linear Class

SNIP algorithm for background estimation on linear (unmodified) data. SNIP = Statistical sensitive Non-Linear Iterative Procedure.
Inheritance Hierarchy
SystemObject
  Altaxo.Science.Spectroscopy.BaselineEstimationSNIP_Base
    Altaxo.Science.Spectroscopy.BaselineEstimationSNIP_Linear

Namespace: Altaxo.Science.Spectroscopy.BaselineEstimation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class SNIP_Linear : SNIP_Base, 
	IBaselineEstimation, ISingleSpectrumPreprocessor, IEquatable<SNIP_Linear>

The SNIP_Linear type exposes the following members.

Constructors
 NameDescription
Public methodSNIP_LinearInitializes a new instance of the SNIP_Linear class
Top
Properties
 NameDescription
Public propertyHalfWidth Half of the width of the averaging window. This value should be set to roughly the FWHM (full width half maximum) of the broadest peak in the spectrum.
(Inherited from SNIP_Base)
Public propertyIsHalfWidthInXUnits Gets a value indicating whether the half width is given in x-axis units.
(Inherited from SNIP_Base)
Public propertyNumberOfRegularIterations Gets or sets the number of regular iterations. Default is 40.
(Inherited from SNIP_Base)
Top
Methods
 NameDescription
Protected methodEvaluateBaselineWithConstantHalfWidth Executes the algorithm to find the baseline with the provided spectrum. This method is specialized for (almost) equally spaced x-values, thus the half width can be given in points.
(Inherited from SNIP_Base)
Protected methodEvaluateBaselineWithLocalHalfWidth Executes the algorithm with the provided spectrum. This method is specialized for not equally spaced x-values, and the half width given in x-units. The half width in points is calculated for each point individually.
(Inherited from SNIP_Base)
Public methodExecute(Double, Double, Int32)
(Inherited from SNIP_Base)
Public methodExecute(ReadOnlySpanDouble, ReadOnlySpanDouble, SpanDouble) Executes the algorithm with the provided spectrum.
(Inherited from SNIP_Base)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString
(Overrides SNIP_Base.ToString)
Top
Fields
 NameDescription
Protected field_halfWidth
(Inherited from SNIP_Base)
Protected field_isHalfWidthInXUnits
(Inherited from SNIP_Base)
Protected field_numberOfRegularStages
(Inherited from SNIP_Base)
Top
Remarks
In difference to the procedure described in Ref. 1, no previous smoothing is applied to the data. Furthermore, the paper suggests to twice logarithmize the data beforehand, which is also not done here. As described in the paper, after execution the number of regular stages of the algorithm, the window width is sucessivly decreased, until it reaches 1. This results in a smoothing of the background signal.

References:

[1] C.G. Ryan et al., SNIP, A STATISTICS-SENSITIVE BACKGROUND TREATMENT FOR THE QUANTITATIVE ANALYSIS OF PIXE SPECTRA IN GEOSCIENCE APPLICATIONS, Nuclear Instruments and Methods in Physics Research 934 (1988) 396-402 North-Holland, Amsterdam

See Also