-
Notifications
You must be signed in to change notification settings - Fork 0
/
SignalProcessingAlgorithm.h
44 lines (36 loc) · 1.01 KB
/
SignalProcessingAlgorithm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* File: SignalProcessingAlgorithm.h
* Author: daniele
*
* Created on 6 aprile 2014, 17.22
*/
#ifndef SIGNALPROCESSINGALGORITHM_H
#define SIGNALPROCESSINGALGORITHM_H
/**
* Pure abstract class, to allow different implementation
* @param Data
* @param N
* @return
*/
class SignalProcessing{
public:
/**
* Get the N data from ADC and process the data with the choosen algorithm implementation
* @param Data
* @param N
* @return true if the algorithm has detect an indoor environment, otherwise return false.
*/
virtual bool ProcessData(double *const Data, const unsigned short N) = 0;
/**
* Get the number of samples needed for the algorithm
* @return num of samples
*/
virtual unsigned int getNumOfSamples() = 0;
/**
* Get the sample frequency of the algorithm
* @return sample frequency
*/
virtual unsigned int getSampleFrequency() = 0;
virtual ~SignalProcessing(){}
};
#endif /* SIGNALPROCESSINGALGORITHM_H */