Template Struct OwnedKDTreeData

Inheritance Relationships

Derived Type

Struct Documentation

template<typename AuxType = void>
struct OwnedKDTreeData

Storage for a set of KDTree points: owning vectors, viewed by a KDTreeData.

For C++ callers that want the tree’s points to own their storage. view() returns a KDTreeData over the vectors; it stays valid until a vector is resized or reallocated (moving this object keeps it valid, since moving a vector keeps its buffer).

Template Parameters:

AuxType – As for KDTreeData

Subclassed by kden::OwnedKernelDensityData< AuxType >

Public Functions

inline auto view() -> KDTreeData<AuxType>

A view of these points.

Returns:

A KDTreeData viewing x_ and aux_

Public Members

std::size_t nDim_ = 0

Number of dimensions of each position

std::vector<double> x_

Positions, N x nDim_, point-major

KDTreeAuxStorage<AuxType>::Owned aux_

Auxiliary data, one per point (if AuxType is not void)