Added other tests

Added tests for:
-Average (all cases)
-STD (all cases)
-Anomaly detection (on a uniform distribution)
This commit is contained in:
2024-11-21 16:35:08 +01:00
parent 4a97a81d7a
commit d31bedd63e
3 changed files with 155 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
#include <stdlib.h>
void initializeReadings();
void freeReadings();
bool freeReadings();
int getSensorsNumber();
int getSlidingWindowSize();
@@ -20,6 +20,12 @@ float getOverallAverage();
float getStandardDeviationOnSensor(int sensorIndex);
float getStandardDeviationOnAllSensors();
float getStandardDeviationOnAllSensors();
float getOverallStandardDeviation();
float getLastReading(int sensorIndex);
bool anomalyDetect(float average, float standardDeviation);
int getOutlierCount();
#endif // DATA_ACQUISITION_H