64 const auto halfN = (inN / 2) + 1;
65 const auto nTimesD =
static_cast<double>(inN) * inD;
68 for (
auto i = 0u; i < halfN; ++i)
70 result[i] =
static_cast<double>(i) / nTimesD;
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
Definition FFT/FFT.hpp:40
NdArray< double > rfftfreq(uint32 inN, double inD=1.)
Definition rfftfreq.hpp:48
std::uint32_t uint32
Definition Types.hpp:40