|
nenesub
Nearest neighbors subsampling
|
Nearest-neighbors subsampling. More...
#include <vector>#include <queue>#include <cstddef>#include <algorithm>#include <type_traits>#include "knncolle/knncolle.hpp"#include "sanisizer/sanisizer.hpp"
Go to the source code of this file.
Classes | |
| struct | nenesub::Options |
Options for compute(). More... | |
Namespaces | |
| namespace | nenesub |
| Nearest-neighbors subsampling. | |
Functions | |
| template<typename Index_ , class GetNeighbors_ , class GetIndex_ , class GetMaxDistance_ > | |
| void | nenesub::compute (const Index_ num_obs, const GetNeighbors_ get_neighbors, const GetIndex_ get_index, const GetMaxDistance_ get_max_distance, const Options &options, std::vector< Index_ > &selected) |
| template<typename Index_ , typename Distance_ > | |
| std::vector< Index_ > | nenesub::compute (const knncolle::NeighborList< Index_, Distance_ > &neighbors, const Options &options) |
| template<typename Index_ , typename Input_ , typename Distance_ > | |
| std::vector< Index_ > | nenesub::compute (const knncolle::Prebuilt< Index_, Input_, Distance_ > &prebuilt, const Options &options) |
| template<typename Index_ , typename Input_ , typename Distance_ , class Matrix_ = knncolle::Matrix<Index_, Input_>> | |
| std::vector< Index_ > | nenesub::compute (const std::size_t num_dims, const Index_ num_obs, const Input_ *data, const knncolle::Builder< Index_, Input_, Distance_, Matrix_ > &knn_method, const Options &options) |
Nearest-neighbors subsampling.