7#ifndef __SABLIB_C_BASELINE_H__
8#define __SABLIB_C_BASELINE_H__
62 const SABLIB_DATA_PTR y,
const unsigned int index1,
const unsigned int index2
76 const SABLIB_DATA_PTR y,
const unsigned int polyorder,
const unsigned int * indices_ptr,
const size_t ptr_size
89 const SABLIB_DATA_PTR y,
const unsigned int * indices_ptr,
const size_t ptr_size
102 const SABLIB_DATA_PTR y,
const unsigned int n,
const unsigned int loop
117 const SABLIB_DATA_PTR y,
const unsigned int m,
const bool decreasing,
132 const SABLIB_DATA_PTR y,
const unsigned int polyorder,
const unsigned int loop,
const double eps
147 const SABLIB_DATA_PTR y,
const unsigned int polyorder,
const double k,
148 const unsigned int loop,
const double eps
165 const SABLIB_DATA_PTR y,
const unsigned int polyorder,
const enum Sablib_BackcorFunc func,
166 const double s,
const double alpha,
const unsigned int loop,
const double eps
185 const SABLIB_DATA_PTR y,
const unsigned int polyorder,
const double peak_ratio,
186 const double alpha,
const unsigned int loop,
const double eps,
187 const unsigned int loop_legend,
const double eps_legend,
const double eps_s
203 const SABLIB_DATA_PTR y,
const double lambda,
const double p,
const unsigned int s,
204 const unsigned int loop,
const double eps
219 const SABLIB_DATA_PTR y,
const double lambda,
const unsigned int s,
220 const unsigned int loop,
const double eps
235 const SABLIB_DATA_PTR y,
const double lambda,
const unsigned int s,
236 const unsigned int loop,
const double eps
253 const SABLIB_DATA_PTR y,
const double lambda,
const double p,
const double k,
254 const unsigned int s,
const unsigned int loop,
const double eps
274 const SABLIB_DATA_PTR y,
const unsigned int s,
const double frequency,
const double r,
275 const double lambda0,
const double lambda1,
const double lambda2,
const unsigned int loop,
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineSnip(const SABLIB_DATA_PTR y, const unsigned int m, const bool decreasing, const enum Sablib_SnipPreprocess preprocess, const unsigned int loop)
Performs baseline estimation using the Statistics-sensitive Non-linear Iterative Peak-clipping (SNIP)...
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_BeadsTrimBoundaries(const SABLIB_DATA_PTR y, const unsigned int n)
Trims the expanded signal boundaries.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselinePsalsa(const SABLIB_DATA_PTR y, const double lambda, const double p, const double k, const unsigned int s, const unsigned int loop, const double eps)
Performs baseline estimation using Peaked Signal’s Asymmetric Least Squares Algorithm (psalsa).
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineBeads(const SABLIB_DATA_PTR y, const unsigned int s, const double frequency, const double r, const double lambda0, const double lambda1, const double lambda2, const unsigned int loop, const double eps, const enum Sablib_BeadsPenalty penalty)
Performs baseline estimation and denoising using Sparsity (BEADS).
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineAirPLS(const SABLIB_DATA_PTR y, const double lambda, const unsigned int s, const unsigned int loop, const double eps)
Performs baseline estimation using adaptive iteratively reweighted Penalized Least Squares(airPLS).
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineGoldindec(const SABLIB_DATA_PTR y, const unsigned int polyorder, const double peak_ratio, const double alpha, const unsigned int loop, const double eps, const unsigned int loop_legend, const double eps_legend, const double eps_s)
Performs baseline estimation using the Goldindec algorithm.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineAsLS(const SABLIB_DATA_PTR y, const double lambda, const double p, const unsigned int s, const unsigned int loop, const double eps)
Performs baseline estimation using Asymmetric Least Squares Smoothing (AsLS).
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineIModPoly(const SABLIB_DATA_PTR y, const unsigned int polyorder, const double k, const unsigned int loop, const double eps)
Estimates the baseline using the Improved Modified Polynomial (IModPoly) method.
Sablib_BackcorFunc
Cost function types for the Backcor algorithm.
Sablib_BeadsPenalty
Penalty types for the BEADS algorithm.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselinePolynomial(const SABLIB_DATA_PTR y, const unsigned int polyorder, const unsigned int *indices_ptr, const size_t ptr_size)
Performs baseline estimation by fitting a polynomial to specified points.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineArPLS(const SABLIB_DATA_PTR y, const double lambda, const unsigned int s, const unsigned int loop, const double eps)
Performs baseline estimation using asymmetrically reweighted Penalized Least Squares(arPLS).
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_BeadsExpandBoundaries(const SABLIB_DATA_PTR y, const unsigned int n)
Expands the signal boundaries by padding with a tapered sequence.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineSpline(const SABLIB_DATA_PTR y, const unsigned int *indices_ptr, const size_t ptr_size)
Performs baseline estimation using cubic spline interpolation.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineLinear(const SABLIB_DATA_PTR y, const unsigned int index1, const unsigned int index2)
Performs baseline estimation with a linear line between two points.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineBackcor(const SABLIB_DATA_PTR y, const unsigned int polyorder, const enum Sablib_BackcorFunc func, const double s, const double alpha, const unsigned int loop, const double eps)
Performs baseline estimation using iterative polynomial fitting with a non-quadratic cost function (B...
Sablib_SnipPreprocess
Preprocessing types for the SNIP algorithm.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineModPoly(const SABLIB_DATA_PTR y, const unsigned int polyorder, const unsigned int loop, const double eps)
Estimates the baseline using the Modified Polynomial (ModPoly) method.
SABLIB_EXPORT const SABLIB_BASELINE_DATA_PTR Sablib_BaselineSMA(const SABLIB_DATA_PTR y, const unsigned int n, const unsigned int loop)
Performs background estimation using a simple moving average.
Definition of data structures for the C interface of sablib, creation and release of data.