Click or drag to resize

SNIP_Linear Class

SNIP algorithm for background estimation on linear (unmodified) data. SNIP = Statistics-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.3448.0 (4.8.3448.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 Gets half of the width of the averaging window.
(Inherited from SNIP_Base)
Public propertyIsHalfWidthInXUnits Gets a value indicating whether HalfWidth is specified in x-axis units.
(Inherited from SNIP_Base)
Public propertyNumberOfRegularIterations Gets the number of regular iterations. The default is 40.
(Inherited from SNIP_Base)
Top
Methods
 NameDescription
Protected methodEvaluateBaselineWithConstantHalfWidth Executes the algorithm to estimate the baseline for 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 using a locally calculated half width. This method is specialized for non-uniformly spaced x-values and a half width specified in x-units. The half width in points is calculated individually for each point.
(Inherited from SNIP_Base)
Public methodExecute(Double, Double, Int32)
(Inherited from SNIP_Base)
Public methodExecute(ReadOnlySpanDouble, ReadOnlySpanDouble, SpanDouble) Executes the algorithm for the provided spectrum and writes the estimated baseline into result.
(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 contrast to the procedure described in Ref. [1], no previous smoothing is applied to the data. Furthermore, the paper suggests applying a double logarithm transform beforehand, which is also not done here. As described in the paper, after executing the regular stages of the algorithm, the window width is successively decreased until it reaches 1. This results in 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