Struct acap::kd::FlatKdTree[][src]

pub struct FlatKdTree<T> { /* fields omitted */ }
Expand description

A k-d tree stored as a flat array.

A FlatKdTree is always balanced and usually more efficient than a KdTree, but doesn’t support dynamic updates.

Implementations

Create a balanced tree out of a sequence of items.

Iterate over the items stored in this tree.

Trait Implementations

Formats the value using the given formatter. Read more

Creates a value from an iterator. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Search for nearest neighbors and add them to a neighborhood.

Returns the nearest neighbor to target (or None if this index is empty).

Returns the nearest neighbor to target within the distance threshold, if one exists.

Returns the up to k nearest neighbors to target. Read more

Returns the up to k nearest neighbors to target within the distance threshold. Read more

Merges up to k nearest neighbors into an existing sorted vector.

Merges up to k nearest neighbors within the threshold into an existing sorted vector.

k-d trees are exact for Minkowski distances.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.