nenesub
Nearest neighbors subsampling
Loading...
Searching...
No Matches
Public Attributes | List of all members
nenesub::Options Struct Reference

Options for compute(). More...

#include <nenesub.hpp>

Public Attributes

int num_neighbors = 20
 
int min_remaining = 10
 
int num_threads = 10
 

Detailed Description

Options for compute().

Member Data Documentation

◆ num_neighbors

int nenesub::Options::num_neighbors = 20

The number of nearest neighbors to use, i.e., \(k\). Only relevant for the compute() overloads without pre-computed neighbors.

◆ min_remaining

int nenesub::Options::min_remaining = 10

The minimum number of remaining neighbors that an observation must have in order to be selected, i.e., \(m\). This should be less than or equal to Options::num_neighbors.

◆ num_threads

int nenesub::Options::num_threads = 10

The number of threads to use. This uses the parallelization scheme defined by knncolle::parallelize(). Only relevant for the compute() overloads that perform a neighbor search.


The documentation for this struct was generated from the following file: