KdTreeSearchResults

References
public class KdTreeSearchResults
Represent a collection of near searches.

Constructors

KdTreeSearchResults

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

Properties

Capacity

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

Count

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

LargestDistance

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

LargestQuadrance

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

ParentSet

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

Results

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

SmallestDistance

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

SmallestQuadrance

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

Methods

DistanceAt

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

IndexAt

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