CollectionExtensionsSeparatePositionsTObject Method

CVB.Net Documentation
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

Namespace:  Stemmer.Cvb.Collections.Generic
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public static IEnumerable<TObject> SeparatePositions<TObject>(
	this IEnumerable<TObject> coll,
	double locality
)
where TObject : IPosition

Parameters

coll
Type: System.Collections.GenericIEnumerableTObject
collection to which to apply the separation
locality
Type: SystemDouble
minimum distance between two results (must be > 0)

Type Parameters

TObject
type of the result comparable objects to be separated

Return Value

Type: IEnumerableTObject

[Missing <returns> documentation for "M:Stemmer.Cvb.Collections.Generic.CollectionExtensions.SeparatePositions``1(System.Collections.Generic.IEnumerable{``0},System.Double)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference