Constructs a MovingWindowFilter instance with the specified parameters.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public MovingWindowFilter( int numberLeft, int numberRight, DoubleVector coefficients ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ numberLeft As Integer, _ numberRight As Integer, _ coefficients As DoubleVector _ ) |
| Visual C++ |
|---|
public: MovingWindowFilter( int numberLeft, int numberRight, DoubleVector^ coefficients ) |
Parameters
- numberLeft
- Type: System..::.Int32
Number of points to the left.
- numberRight
- Type: System..::.Int32
Number of points to the right.
- coefficients
- Type: CenterSpace.NMath.Core..::.DoubleVector
The coefficients for the linear combination.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if either number left or number right is negative, or if the number of coefficients is not equal to the size of the window ( = numberLeft + numberRight + 1). |