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 "utils.hpp"
6
12namespace mnncorrect {
13
22template<typename Index_, typename Float_, class Matrix_ = knncolle::Matrix<Index_, Float_> >
23struct Options {
32 int num_neighbors = 15;
33
38 double num_mads = 3;
39
44 std::shared_ptr<knncolle::Builder<Index_, Float_, Float_, Matrix_> > builder;
45
58 std::vector<BatchIndex> order;
59
71 bool automatic_order = true;
72
78
83 double robust_trim = 0.25;
84
88 ReferencePolicy reference_policy = ReferencePolicy::MAX_RSS;
89
96 Index_ mass_cap = 0;
97
102 int num_threads = 1;
103};
104
105}
106
107#endif
Batch correction with mutual nearest neighbors.
Definition compute.hpp:24
ReferencePolicy
Definition utils.hpp:38
Options for compute().
Definition Options.hpp:23
Index_ mass_cap
Definition Options.hpp:96
int robust_iterations
Definition Options.hpp:77
double robust_trim
Definition Options.hpp:83
std::shared_ptr< knncolle::Builder< Index_, Float_, Float_, Matrix_ > > builder
Definition Options.hpp:44
double num_mads
Definition Options.hpp:38
int num_threads
Definition Options.hpp:102
ReferencePolicy reference_policy
Definition Options.hpp:88
int num_neighbors
Definition Options.hpp:32
std::vector< BatchIndex > order
Definition Options.hpp:58
bool automatic_order
Definition Options.hpp:71
Utilities for MNN correction.