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.CoreAssembly: 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
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | The filter width must be less than the data length. |
| CenterSpace.NMath.Core..::.InvalidArgumentException | The polynomial degree must be 2 or greater. |
| CenterSpace.NMath.Core..::.InvalidArgumentException | Input data cannot be null. |