From 007e415b87c48520e367c12a8db7be3c4f4003b0 Mon Sep 17 00:00:00 2001 From: Manuel Pitz Date: Tue, 16 Feb 2021 09:36:14 +0100 Subject: [PATCH] adapt code style --- lib/dumper.cpp | 2 +- lib/hooks/dft.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dumper.cpp b/lib/dumper.cpp index 9a07ea8a4..aab538bbf 100644 --- a/lib/dumper.cpp +++ b/lib/dumper.cpp @@ -74,7 +74,7 @@ void Dumper::writeData(uint len, double* yData, double* xData) for (uint i = 0; i*[freq_count]; if (!dftMatrix) throw MemoryAllocationError(); @@ -199,7 +199,7 @@ public: for (uint i = 0; i < freq_count; i++) absDftFreqs[i] = start_freqency + i * frequency_resolution; - genDftMatrix(); + generateDftMatrix(); calcWindow(window_type); state = State::PREPARED; @@ -375,7 +375,7 @@ public: return Reason::SKIP_SAMPLE; } - void genDftMatrix() { + void generateDftMatrix() { using namespace std::complex_literals; omega = exp((-2 * M_PI * M_I) / (double)(window_size * window_multiplier));