| Bsoft 2.0.5 Bernard's software package

moving_average.h
Go to the documentation of this file.
1
9 #include "Complex.h"
10 #include "matrix_linear.h"
11 #include "utilities.h"
12
13 // Function prototypes
14 double* moving_average(long number, double* x, long window);
15 Complex<float>* moving_average_complex(long number, Complex<float>* x, long window);
16 vector<double> moving_polynomial(long order, long number, double* x, long window);
17
moving_average
double * moving_average(long number, double *x, long window)
Calculates a moving average over an array of data.
Definition: moving_average.cpp:28
utilities.h
Header file for general utilities.
Complex.h
Class for complex numbers.
moving_polynomial
vector< double > moving_polynomial(long order, long number, double *x, long window)
Calculates a moving polynomial fit over an array of data.
Definition: moving_average.cpp:122
moving_average_complex
Complex< float > * moving_average_complex(long number, Complex< float > *x, long window)
Calculates a moving average over an array of complex data.
Definition: moving_average.cpp:75
Complex
Definition: Complex.h:23
matrix_linear.h
Header file for matrix functions.