Implemented getMetrics()
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user