sablib
Loading...
Searching...
No Matches
spline.h File Reference

Baseline estimation from cubic spline. More...

#include <stdexcept>
#include <vector>
#include "../misc/cubic_spline.h"

Go to the source code of this file.

Functions

const std::vector< double > sablib::BaselineSpline (const std::vector< double > &y, const std::vector< unsigned int > &indices)
 Performs baseline estimation using cubic spline interpolation.

Detailed Description

Baseline estimation from cubic spline.

Author
Izadori

Definition in file spline.h.

Function Documentation

◆ BaselineSpline()

const std::vector< double > sablib::BaselineSpline ( const std::vector< double > & y,
const std::vector< unsigned int > & indices )

Performs baseline estimation using cubic spline interpolation.

Parameters
yThe input data for baseline estimation.
indicesThe indices of the points to be used as knots for the cubic spline.
Returns
The estimated baseline.
Exceptions
std::invalid_argumentOne or more parameters are wrong.

Definition at line 14 of file spline.cpp.

References sablib::CubicSpline< Scalar >::Interpolate().