]>
Commit | Line | Data |
---|---|---|
1 | #ifndef DATA_OPERATIONS_H | |
2 | #define DATA_OPERATIONS_H | |
3 | ||
4 | #include <string.h> | |
5 | #include <stdint.h> | |
6 | ||
7 | // Max graph trace len: 40000 (bigbuf) * 8 (at 1 bit per sample) | |
8 | #define MAX_GRAPH_TRACE_LEN (40000 * 8 ) | |
9 | ||
10 | extern int GraphBuffer[MAX_GRAPH_TRACE_LEN]; | |
11 | extern int GraphTraceLen; | |
12 | extern int s_Buff[MAX_GRAPH_TRACE_LEN]; | |
13 | ||
14 | ||
15 | int autoCorr(const int* in, int *out, size_t len, int window); | |
16 | int directionalThreshold(const int* in, int *out, size_t len, int8_t up, int8_t down); | |
17 | #endif // DATA_OPERATIONS_H |