![]() |
sablib
|
Baseline estimation and subtraction using Baseline Estimation And Denoising using Sparsity(BEADS)(implementation). More...
#include <cmath>#include <functional>#include <Eigen/Eigen>#include "../misc/convolve.h"#include "../misc/diff.h"#include "../misc/spdiags.h"#include "beads.h"Go to the source code of this file.
Functions | |
| const std::tuple< std::vector< double >, std::vector< double > > | sablib::BaselineBeads (const std::vector< double > &y, const unsigned int s, const double frequency, const double r, const double lambda0, const double lambda1, const double lambda2, const unsigned int loop=30, const double eps=1e-3, const BeadsPenalty penalty=BeadsPenalty::L1_v2) |
| Performs baseline estimation and denoising using Sparsity (BEADS). | |
Baseline estimation and subtraction using Baseline Estimation And Denoising using Sparsity(BEADS)(implementation).
Definition in file beads.cpp.
| const std::tuple< std::vector< double >, std::vector< double > > sablib::BaselineBeads | ( | const std::vector< double > & | y, |
| const unsigned int | s, | ||
| const double | frequency, | ||
| const double | r, | ||
| const double | lambda0, | ||
| const double | lambda1, | ||
| const double | lambda2, | ||
| const unsigned int | loop = 30, | ||
| const double | eps = 1e-3, | ||
| const BeadsPenalty | penalty = BeadsPenalty::L1_v2 ) |
Performs baseline estimation and denoising using Sparsity (BEADS).
| y | The input data. |
| s | Order of the derivative for baseline sparsity (typically 1 or 2). |
| frequency | Sampling frequency of the signal. |
| r | High-pass filter parameter (cut-off frequency relative to sampling frequency). |
| lambda0 | Sparsity parameter for the baseline. |
| lambda1 | Sparsity parameter for the first-order derivative of the signal. |
| lambda2 | Sparsity parameter for the second-order derivative of the signal. |
| loop | Maximum number of iterations. |
| eps | Convergence threshold. |
| penalty | Penalty type (L1_v1 or L1_v2). |
| std::invalid_argument | One or more parameters are wrong. |