Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
433078df3a478ecc66f8c1d86d6abb48496013ec
[simgrid.git] / src / nws_portability / Include / median.h
1 /* $Id$ */
2
3 #ifndef MEDIAN_H
4 #define MEDIAN_H
5
6 #define MAX_MED_SIZE 100
7
8 #include "fbuff.h"
9
10 char *InitMedian(fbuff series, fbuff time_stamps, char *params);
11 void FreeMedian(char *state);
12 void UpdateMedian(char *state, double ts, double value);
13 int ForcMedian(char *state, double *forecast);
14
15 char *InitTrimMedian(fbuff series, fbuff time_stamps, char *params);
16 void FreeTrimMedian(char *state);
17 void UpdateTrimMedian(char *state, double ts, double value);
18 int ForcTrimMedian(char *state, double *forecast);
19
20 char *InitAdMedian(fbuff series, fbuff time_stamps, char *params);
21 void FreeAdMedian(char *state);
22 void UpdateAdMedian(char *state, double ts, double value);
23 int ForcAdMedian(char *state, double *forecast);
24
25 #endif
26