sablib
Loading...
Searching...
No Matches
sma.h
Go to the documentation of this file.
1
6
7#ifndef __SABLIB_SMA_H__
8#define __SABLIB_SMA_H__
9
11
12namespace sablib {
13
22const std::vector<double> BaselineSMA(std::vector<double> & y, const unsigned int n, const unsigned int loop = 50);
23
24}; // namespace sablib
25
26#endif // __SABLIB_SMA_H__
Smoothing using simple/weighted moving average.
const std::vector< double > BaselineSMA(std::vector< double > &y, const unsigned int n, const unsigned int loop)
Performs background estimation using a simple moving average.
Definition sma.cpp:14