Implemented getMetrics()

This commit is contained in:
2024-12-03 12:31:45 +01:00
parent c0bb5c46ef
commit 23951656c1
4 changed files with 146 additions and 4 deletions

View File

@@ -5,7 +5,18 @@
#include <math.h>
#include <stdlib.h>
void initializeReadings();
typedef struct {
float mean;
float standardDeviation;
int possibleFaultySensor;
} Metrics;
typedef struct {
int sensorsNumber;
int slidingWindowSize;
} Matrix;
void initializeReadings(int numSensors, float deltaTime);
bool freeReadings();
int getSensorsNumber();
@@ -28,4 +39,6 @@ bool anomalyDetect(float average, float standardDeviation);
int getOutlierCount();
Metrics getMetrics(float **readings, int sensorNumber, int slidingWindow);
#endif // DATA_ACQUISITION_H