1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

adapt code style

This commit is contained in:
Manuel Pitz 2021-02-16 09:36:14 +01:00
parent af09e1bc69
commit 007e415b87
2 changed files with 4 additions and 4 deletions

View file

@ -74,7 +74,7 @@ void Dumper::writeData(uint len, double* yData, double* xData)
for (uint i = 0; i<len; i++) {
std::string str = std::to_string(yData[i]);
if( xData != nullptr)
if(xData != nullptr)
str+= ";" + std::to_string(xData[i]);
str += "\n";

View file

@ -178,7 +178,7 @@ public:
//init sample memory
//init matrix of dft coeffients
/*init matrix of dft coeffients*/
dftMatrix = new std::complex<double>*[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));