sablib
Loading...
Searching...
No Matches
beads.h
Go to the documentation of this file.
1
11
12#ifndef __SABLIB_BEADS_H__
13#define __SABLIB_BEADS_H__
14
15#include <stdexcept>
16
17#include "result_type.h"
18#include "sablib_export.h"
19
20namespace sablib {
21
25enum class BeadsPenalty
26{
29};
30
47SABLIB_EXPORT const BaselineResult
48BaselineBeads(
49 const std::vector<double> & y, const unsigned int s, const double frequency, const double r,
50 const double lambda0, const double lambda1, const double lambda2, const unsigned int loop = 30,
51 const double eps = 1e-3, const BeadsPenalty penalty = BeadsPenalty::L1_v2
52);
53
62SABLIB_EXPORT const std::vector<double>
63BeadsExpandBoundaries(const std::vector<double> & y, const unsigned int n = 400);
64
73SABLIB_EXPORT const std::vector<double>
74BeadsTrimBoundaries(const std::vector<double> & y, const unsigned int n = 400);
75
76}; // namespace sablib
77
78#endif // _SABLIB_BEADS_H__
@ L1_v1
Definition baseline.h:48
@ L1_v2
Definition baseline.h:49
BeadsPenalty
Penalty types for the BEADS algorithm.(see Table 1 in Duval's paper).
Definition beads.h:26
Common definition of return value for baseline estimation functions.