Commit 137df789cc8b6ff6bc251802819d8a515a97fa62

Authored by Menouard AZIB
1 parent 2e461584

Period needs to be fixed

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 {
... ...