KdTreeSearchResults

References
public class KdTreeSearchResults
Represent a collection of near searches.

Constructors

KdTreeSearchResults

#
Create an empty search result bucket.
public KdTreeSearchResults(
set,
Sample set.
count
Number of potential results.
)

Properties

Capacity

#
Gets the number of results this collection could potentially store.
public int Capacity { get; }

Count

#
Gets the number of actual results.
public int Count { get; }

LargestDistance

#
Gets the distance of the furthest result.
public double LargestDistance { get; }

LargestQuadrance

#
Gets the distance of the furthest result.
public double LargestQuadrance { get; }

ParentSet

#
Gets the sample set associated with these results.
public ISampleSet ParentSet { get; }

Results

#
Enumerate over all results, from closest to furthest.
public IEnumerable<KeyValuePair<int, double>> Results { get; }

SmallestDistance

#
Gets the distance of the closest result.
public double SmallestDistance { get; }

SmallestQuadrance

#
Gets the distance of the closest result.
public double SmallestQuadrance { get; }

Methods

DistanceAt

#
Gets the item distance associated with the given result index.
public double DistanceAt(
index
Index of result.
)
Distance of item to search locus.

IndexAt

#
Gets the item index associated with the given result index.
public int IndexAt(
index
Index of result.
)
Index of item.