An instance of a Savitkzy-Golay peak finder. The width of the filter must be less than the length of the data, and the polynomial degree must be less than the filter width.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public PeakFinderSavitzkyGolay(
	DoubleVector inputdata,
	int width,
	int polynomialdegree
)
Visual Basic (Declaration)
Public Sub New ( _
	inputdata As DoubleVector, _
	width As Integer, _
	polynomialdegree As Integer _
)
Visual C++
public:
PeakFinderSavitzkyGolay(
	DoubleVector^ inputdata, 
	int width, 
	int polynomialdegree
)

Parameters

inputdata
Type: CenterSpace.NMath.Core..::.DoubleVector
Input data
width
Type: System..::.Int32
Width of peak finder
polynomialdegree
Type: System..::.Int32
Degree of polynomial to use for fitting

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThe filter width must be less than the data length.
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThe polynomial degree must be 2 or greater.
CenterSpace.NMath.Core..::.InvalidArgumentExceptionInput data cannot be null.

See Also