nenesub
Nearest neighbors subsampling
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
nenesub.hpp File Reference

Nearest-neighbors subsampling. More...

#include <vector>
#include <queue>
#include <cstdint>
#include <algorithm>
#include "knncolle/knncolle.hpp"
Include dependency graph for nenesub.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 (Index_ num_obs, GetNeighbors_ get_neighbors, GetIndex_ get_index, 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 Dim_ , typename Index_ , typename Float_ >
std::vector< Index_ > nenesub::compute (const knncolle::Prebuilt< Dim_, Index_, Float_ > &prebuilt, const Options &options)
 
template<typename Dim_ , typename Index_ , typename Value_ , typename Float_ >
std::vector< Index_ > nenesub::compute (Dim_ num_dims, Index_ num_obs, const Value_ *data, const knncolle::Builder< knncolle::SimpleMatrix< Dim_, Index_, Value_ >, Float_ > &knn_method, const Options &options)
 

Detailed Description

Nearest-neighbors subsampling.