mnncorrect
Batch correction with mutual nearest neighbors
Loading...
Searching...
No Matches
Options.hpp
Go to the documentation of this file.
1#ifndef MNNCORRECT_OPTIONS_HPP
2#define MNNCORRECT_OPTIONS_HPP
3
5#include "ReferencePolicy.hpp"
6
12namespace mnncorrect {
13
20template<typename Dim_ = int, typename Index_ = int, typename Float_ = double>
21struct Options {
30 int num_neighbors = 15;
31
36 double num_mads = 3;
37
42 std::shared_ptr<knncolle::Builder<knncolle::SimpleMatrix<Dim_, Index_, Float_>, Float_> > builder;
43
56 std::vector<size_t> order;
57
69 bool automatic_order = true;
70
76
81 double robust_trim = 0.25;
82
86 ReferencePolicy reference_policy = ReferencePolicy::MAX_RSS;
87
94 size_t mass_cap = -1;
95
100 int num_threads = 1;
101};
102
103}
104
105#endif
Automatic choice for the reference batch.
Batch correction with mutual nearest neighbors.
Definition compute.hpp:23
ReferencePolicy
Definition ReferencePolicy.hpp:28
Options for compute().
Definition Options.hpp:21
int num_threads
Definition Options.hpp:100
std::vector< size_t > order
Definition Options.hpp:56
double robust_trim
Definition Options.hpp:81
double num_mads
Definition Options.hpp:36
ReferencePolicy reference_policy
Definition Options.hpp:86
int num_neighbors
Definition Options.hpp:30
std::shared_ptr< knncolle::Builder< knncolle::SimpleMatrix< Dim_, Index_, Float_ >, Float_ > > builder
Definition Options.hpp:42
size_t mass_cap
Definition Options.hpp:94
bool automatic_order
Definition Options.hpp:69
int robust_iterations
Definition Options.hpp:75