Filter Constructor
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Filter( | Constructs a new Filter from an array of indexes. |
Filter( | Constructs a new Filter from a range of indexes. |
Filter( | Constructs a new Filter object. |
Filter(Int32, Int32[])
Constructs a new Filter from an array of indexes.
public Filter(
int length,
int[] indexes
)
Parameters
Remarks
All values in indexes must be greater than or equal to zero and less than length.
Exceptions
Argument | indexes is null. |
Argument | length is less than zero. |
Argument | One of the elements of indexes is less than zero or greater than or equal to length. |
Filter(Int32, Int32, Int32)
Constructs a new Filter from a range of indexes.
public Filter(
int length,
int startIndex,
int endIndex
)
Parameters
Remarks
Both startIndex and endIndex must be greater than or equal to zero and less than or equal to length. If startIndex is greater than endIndex, the filter contains no elements.
Exceptions
Argument | length is less than zero. -or- startIndex is less than zero or greater than length.. -or- endIndex is less than zero or greater than length.. |
Filter(Int32, Int32, Int32[], Boolean)
Constructs a new Filter object.
public Filter(
int length,
int filteredLength,
int[] indexes,
bool reuseArray
)