sablib
Loading...
Searching...
No Matches
backcor.h
Go to the documentation of this file.
1
10
11
#ifndef __SABLIB_BACKCOR_H__
12
#define __SABLIB_BACKCOR_H__
13
14
#include <stdexcept>
15
#include <vector>
16
17
namespace
sablib {
18
25
enum class
BackcorFunc
26
{
27
Huber
,
28
AHuber
,
29
TQuad
,
30
ATQuad
,
31
Indec
,
32
AIndec
33
};
34
51
const
std::vector<double>
52
BaselineBackcor(
53
const
std::vector<double> & y,
const
unsigned
int
polyorder,
const
BackcorFunc func = BackcorFunc::ATQuad,
54
const
double
s = 1,
const
double
alpha = 0.99 * 0.5,
const
unsigned
int
loop = 50,
const
double
eps = 1.0e-3
55
);
56
57
};
// namespace sablib
58
59
#endif
// __SABLIB_BACKCOR_H__
sablib::BackcorFunc
BackcorFunc
Cost function types for the Backcor algorithm.
Definition
backcor.h:26
sablib::BackcorFunc::ATQuad
@ ATQuad
Definition
backcor.h:30
sablib::BackcorFunc::AIndec
@ AIndec
Definition
backcor.h:32
sablib::BackcorFunc::Huber
@ Huber
Definition
backcor.h:27
sablib::BackcorFunc::Indec
@ Indec
Definition
backcor.h:31
sablib::BackcorFunc::AHuber
@ AHuber
Definition
backcor.h:28
sablib::BackcorFunc::TQuad
@ TQuad
Definition
backcor.h:29
GitHub
sablib
sablib
baseline
backcor.h
Generated by
1.16.1