/*! Maximum frequency as digital normalized frequency */
#define MAX_FREQUENCY_R(r) ((2.0 * M_PI * MAX_FREQUENCY) / (r))
/* decrease this value to eliminate false positives */
-#define VARIANCE_THRESHOLD (0.001)
+#define VARIANCE_THRESHOLD (0.0001)
- #include "amplitude.h"
- #include "buffer.h"
- #include "desa2.h"
- //#include "goertzel.h"
- #include "psi.h"
- #include "sma_buf.h"
- #include "options.h"
-
- #ifdef FASTMATH
- #include "fast_acosf.h"
+ #ifdef AVMD_REQUIRE_CONTINUOUS_STREAK
+ /* increase this value to eliminate false positives */
+ #define SAMPLES_CONSECUTIVE_STREAK 3
#endif
/*! Syntax of the API call. */