CollectionExtensions Methods

CVB.Net Documentation

The CollectionExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAsStringTObject
Convert a list of named object into a string (useful for example with the Minos classifier's 'Read' method).
Public methodStatic memberFindQuantil(IEnumerableDouble, Double)
Find the Quantile defined by p.
Public methodStatic memberFindQuantil(IEnumerableDouble, Double, SortStatus)
Find the Quantile defined by p.
Public methodStatic memberGetCenterTObject
Calculate the center of gravity over a list of position objects.
Public methodStatic memberSeparateByQualityTObject
Makes sure the results in this list are separated by at least locality pixels (measured using the L1 norm). The separations is being carried out as follows:
  1. First of all the list of results will be sorted by descending quality
  2. Then the list will iterated from the element with the highest quality to the element with the lowest quality
  3. For each element being iterated the distance to all subsequent list elements (i.e. those list elements with a lower quality) will be calculated; if it is less than the locality parameter, the element with the lower quality will be eliminated from the list
Public methodStatic memberSeparateBySizeTObject
Makes sure the results in this list are separated by at least locality pixels (measured using the L1 norm). The separations is being carried out as follows:
  1. First of all the list of results will be sorted by descending quality
  2. Then the list will iterated from the element with the highest quality to the element with the lowest quality
  3. For each element being iterated the distance to all subsequent list elements (i.e. those list elements with a lower quality) will be calculated; if it is less than the locality parameter, the element with the lower quality will be eliminated from the list
Public methodStatic memberSeparatePositionsTObject
Makes sure the results in this list are separated by at least locality pixels (measured using the L1 norm). The separations is being carried out as follows:
  1. It is assumed that the list is already sorted "best to worst" according to whatever criterion is suitable
  2. Then the list will iterated from the first element to the last element
  3. For each element being iterated the distance to all subsequent list elements (i.e. those list elements with a lower quality) will be calculated; if it is less than the locality parameter, the element that came last will be eliminated from the list
Public methodStatic memberSortByAbsoluteQualityTObject(IEnumerableTObject)
Sort a list of qualified objects by the objects qualities.
Public methodStatic memberSortByAbsoluteQualityTObject(IEnumerableTObject, SortDirection)
Sort by absolute quality values (may be useful where qualities can be negative like e.g. with the Edge tool, where in some search modes the sign of the quality indicates the edge polarity).
Public methodStatic memberSortByDistanceTObject(IEnumerableTObject, IPosition)
Sort a list of position according to their distances form a sort center.
Public methodStatic memberSortByDistanceTObject(IEnumerableTObject, IPosition, SortDirection)
Sort a list of positions according to their distances from a sort center.
Public methodStatic memberSortByNameTObject(IEnumerableTObject)
Sort a list of named objects by the objects names.
Public methodStatic memberSortByNameTObject(IEnumerableTObject, SortDirection)
Sort a list of named objects by the objects names.
Public methodStatic memberSortByPositionTObject
Sort a list of position objects by their sortDirection to a sort direction.
Public methodStatic memberSortByQualityTObject(IEnumerableTObject)
Sort a list of qualified objects by the objects qualities.
Public methodStatic memberSortByQualityTObject(IEnumerableTObject, SortDirection)
Sort a list of qualified objects by the objects qualities.
Public methodStatic memberSortByRotationTObject(IEnumerableTObject)
Sort a list of rotated objects by the objects qualities.
Public methodStatic memberSortByRotationTObject(IEnumerableTObject, SortDirection)
Sort a list of rotated objects by the objects qualities.
Public methodStatic memberSortByScaleTObject(IEnumerableTObject)
Sort a list of scaled objects by the objects qualities.
Public methodStatic memberSortByScaleTObject(IEnumerableTObject, SortDirection)
Sort a list of scaled objects by the objects qualities.
Public methodStatic memberSortBySizeTObject(IEnumerableTObject)
Sort a list of sized objects by the objects qualities.
Public methodStatic memberSortBySizeTObject(IEnumerableTObject, SortDirection)
Sort a list of sized objects by the objects qualities.
Public methodStatic memberSwapTValue
Swap two elements of an array
Public methodStatic memberThresholdTObject
Remove all values in a collection that lies below a threshold.
Public methodStatic memberThresholdAbsoluteTObject
Remove all values in a collection that lies below a threshold.
Top
See Also

Reference