summaryrefslogtreecommitdiffhomepage
path: root/autocorrelation.h
diff options
context:
space:
mode:
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