summaryrefslogtreecommitdiffhomepage
path: root/autocorrelation.h
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2019-02-17 12:55:13 +0100
committerRoland Stigge <stigge@antcom.de>2019-02-17 12:55:13 +0100
commitfef594c82518a8fe4c96794852c1fc849c0ed3b3 (patch)
tree2efbedc8b126a77d91633ce8b9201dc4a7db764c /autocorrelation.h
parent1a219839034e9b11a4771fb84c90d4a2667365ce (diff)
Added tunerdemo
Diffstat (limited to 'autocorrelation.h')
-rw-r--r--autocorrelation.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/autocorrelation.h b/autocorrelation.h
new file mode 100644
index 0000000..3be0802
--- /dev/null
+++ b/autocorrelation.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <complex>
+#include <memory>
+#include <vector>
+
+namespace RIT {
+
+class AutoCorrelation {
+public:
+ AutoCorrelation(int size);
+ ~AutoCorrelation();
+ std::vector<std::complex<double>> operator()(const std::vector<std::complex<double>> &v) const;
+
+private:
+ struct Impl;
+ std::unique_ptr<Impl> mImpl;
+}; // class AutoCorrelation
+
+} // namespace RIT