sablib
Loading...
Searching...
No Matches
smoothing.h
Go to the documentation of this file.
1
6
7#ifndef __SABLIB_C_SMOOTHING_H__
8#define __SABLIB_C_SMOOTHING_H__
9
10#include "data.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif // __cplusplus
15
24SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_MovingAverage(const SABLIB_DATA_PTR y, const unsigned int n);
25
34SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_WeightedMovingAverage(const SABLIB_DATA_PTR y, const SABLIB_DATA_PTR w);
35
44SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_GaussianKernel(const unsigned int n, const double sigma);
45
58SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_GaussianFilter(const SABLIB_DATA_PTR y, const unsigned int n, const double sigma);
59
68SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_MovingMedian(const SABLIB_DATA_PTR y, const unsigned int n);
69
84SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_PSpline(
85 const SABLIB_DATA_PTR y, const unsigned int knots_num,
86 const unsigned int degree, const unsigned int s, const double lambda
87);
88
99SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_SavitzkyGolayCoefficients(
100 const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta
101);
102
114SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_SavitzkyGolay(
115 const SABLIB_DATA_PTR y,
116 const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta
117);
118
129SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_WeightedWhittaker(
130 const SABLIB_DATA_PTR y, const SABLIB_DATA_PTR w,
131 const double lambda, const unsigned int s
132);
133
143SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_Whittaker(
144 const SABLIB_DATA_PTR y, const double lambda, const unsigned int s
145);
146
147#ifdef __cplusplus
148}
149#endif // __cplusplus
150
151#endif // __SABLIB_C_SMOOTHING_H__
Definition of data structures for the C interface of sablib, creation and release of data.
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_MovingAverage(const SABLIB_DATA_PTR y, const unsigned int n)
Calculates the simple moving average of the input signal.
Definition smoothing.cpp:21
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_PSpline(const SABLIB_DATA_PTR y, const unsigned int knots_num, const unsigned int degree, const unsigned int s, const double lambda)
Smoothes the input data using P-Splines (Penalized B-Splines).
Definition smoothing.cpp:99
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_WeightedMovingAverage(const SABLIB_DATA_PTR y, const SABLIB_DATA_PTR w)
Calculates the weighted moving average of the input signal.
Definition smoothing.cpp:37
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_GaussianFilter(const SABLIB_DATA_PTR y, const unsigned int n, const double sigma)
Performs Gaussian smoothing on the input signal.
Definition smoothing.cpp:67
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_SavitzkyGolay(const SABLIB_DATA_PTR y, const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta)
Performs smoothing (and differentiation) using a Savitzky-Golay filter.
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_Whittaker(const SABLIB_DATA_PTR y, const double lambda, const unsigned int s)
Performs Whittaker smoothing (without weights).
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_SavitzkyGolayCoefficients(const unsigned int n, const unsigned int polyorder, const unsigned derive, const double delta)
Calculates the coefficients for a Savitzky-Golay filter.
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_MovingMedian(const SABLIB_DATA_PTR y, const unsigned int n)
Performs moving median smoothing.
Definition smoothing.cpp:83
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_GaussianKernel(const unsigned int n, const double sigma)
Generates a Gaussian kernel.
Definition smoothing.cpp:54
SABLIB_EXPORT const SABLIB_DATA_PTR Sablib_WeightedWhittaker(const SABLIB_DATA_PTR y, const SABLIB_DATA_PTR w, const double lambda, const unsigned int s)
Performs Whittaker smoothing (with weights).