25 lines
564 B
C
25 lines
564 B
C
|
|
#ifndef DATA_ACQUISITION_H
|
||
|
|
#define DATA_ACQUISITION_H
|
||
|
|
|
||
|
|
#include <stdbool.h>
|
||
|
|
#include <math.h>
|
||
|
|
#include <stdlib.h>
|
||
|
|
|
||
|
|
void initializeReadings();
|
||
|
|
void freeReadings();
|
||
|
|
|
||
|
|
int getSensorsNumber();
|
||
|
|
int getSlidingWindowSize();
|
||
|
|
bool isFull(int sensorIndex);
|
||
|
|
|
||
|
|
void addReading(float value, int sensorIndex);
|
||
|
|
|
||
|
|
float getAverageOnSensor(int sensorIndex);
|
||
|
|
float getAverageOnAllSensors();
|
||
|
|
float getOverallAverage();
|
||
|
|
|
||
|
|
float getStandardDeviationOnSensor(int sensorIndex);
|
||
|
|
float getStandardDeviationOnAllSensors();
|
||
|
|
float getStandardDeviationOnAllSensors();
|
||
|
|
|
||
|
|
#endif // DATA_ACQUISITION_H
|