nenesub
Nearest neighbors subsampling
|
Options for compute()
.
More...
#include <nenesub.hpp>
Public Attributes | |
int | num_neighbors = 20 |
int | min_remaining = 10 |
int | num_threads = 10 |
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.
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
.
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.