Commit 137df789cc8b6ff6bc251802819d8a515a97fa62
1 parent
2e461584
Exists in
master
and in
37 other branches
Period needs to be fixed
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/Parameters/fonctions/fourier/DiscreteFourierTransform.cc
... | ... | @@ -145,7 +145,7 @@ template <class T, class E> |
145 | 145 | std::vector<E> DiscreteFourierTransform<T, E>::getPeriods(std::vector<std::complex<E>> x, double sampleSpacing_) |
146 | 146 | { |
147 | 147 | const int N = x.size(); |
148 | - const double stepPeriod = sampleSpacing_ * N; | |
148 | + const double stepPeriod = sampleSpacing_; | |
149 | 149 | std::vector<E> out; |
150 | 150 | for (int k = 0; k < N / 2; k++) |
151 | 151 | { | ... | ... |