Added tests
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
#ifndef DATA_ACQUISITION_H
|
||||
#define DATA_ACQUISITION_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// Struttura per la gestione dei dati di acquisizione
|
||||
typedef struct {
|
||||
int sensorsNumber;
|
||||
int slidingWindowSize;
|
||||
} dataAcquisition;
|
||||
|
||||
// Funzioni per la gestione dei dati di acquisizione
|
||||
void initializeReadings();
|
||||
void freeReadings();
|
||||
|
||||
// Funzioni getter
|
||||
int getSensorsNumber();
|
||||
int getSlidingWindowSize();
|
||||
bool isFull(int sensorIndex);
|
||||
|
||||
// Funzioni setter
|
||||
void addReading(float value, int sensorIndex);
|
||||
void setSensorsNumber(int number);
|
||||
void setSlidingWindowSize(int size);
|
||||
|
||||
float getAverageOnSensor(int sensorIndex);
|
||||
float getAverageOnAllSensors();
|
||||
float getOverallAverage();
|
||||
|
||||
float getStandardDeviationOnSensor(int sensorIndex);
|
||||
float getStandardDeviationOnAllSensors();
|
||||
float getStandardDeviationOnAllSensors();
|
||||
|
||||
#endif // DATA_ACQUISITION_H
|
||||
Reference in New Issue
Block a user