Represents a collection that holds only top N elements.
Inheritance Hierarchy
NReco.NLQuery.TopSet<T>
Namespace: NReco.NLQuery
Assembly: NReco.NLQuery (in NReco.NLQuery.dll) Version: 1.0.0
Syntax
Type Parameters
- T
The TopSet<T> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | TopSet<T>(Int32, IComparer<T>) |
Initializes a new instance of the [!:TopSet] class.
|
![]() | TopSet<T>(Int32, Comparison<T>) |
Initializes a new instance of the [!:TopSet] class.
|
Properties
Name | Description | |
---|---|---|
![]() | Count |
Returns number of elements in the collection.
|
![]() | Max |
Gets the maximum value in the collection.
|
![]() | Min |
Gets the minimum value in the collection.
|
Methods
Name | Description | |
---|---|---|
![]() | Add |
Adds an element into the [!:TopSet].
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToArray |
Copies top N elements to a new array. Elements are sorted in descending order.
|
![]() | ToString | (Inherited from Object.) |
See Also