comparison stat.h @ 133:7540703b8473

Major code cleanup. Implement beatnote recentering.
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Wed, 22 Jan 2014 12:10:17 +0100
parents
children e04123ab79ef
comparison
equal deleted inserted replaced
132:fbd72d87b4dc 133:7540703b8473
1 #ifndef __STAT_H__
2 #define __STAT_H__
3
4 struct stat {
5 int samples;
6 double mean;
7 double slope;
8 double previous;
9 };
10
11 void stat_zero(struct stat *s);
12 void stat_accumulate(struct stat *s, double value);
13
14 #define ROLLMEAN_N_OBS 10
15
16 struct rollmean {
17 int wlen;
18 int nobs;
19 double mean;
20 double acc;
21 double prev;
22 };
23
24 void rollmean_zero(struct rollmean *s, int wlen);
25 void rollmean_accumulate(struct rollmean *s, double value);
26
27 #endif