|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
Fast Fourier Transform (FFT) and autocorrelation utilities. More...
#include <complex>#include <stdexcept>#include <vector>#include "math/Precision.hpp"#include "math/Constants.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | correlation |
| namespace | correlation::math |
| Defines universal mathematical and physical constants. | |
Functions | |
| bool | correlation::math::isGoodFFTSize (size_t n) |
| Helper to check if a size is a product of small prime factors (2, 3, 5). Highly optimized for FFTW3 and MKL. | |
| size_t | correlation::math::findNextGoodFFTSize (size_t target) |
| Finds the next "good" FFT size >= target. | |
| template<typename T = double> | |
| void | correlation::math::computeFFT (std::vector< std::complex< T > > &data, bool invert) |
| Simple Radix-2 Cooley-Tukey FFT implementation with bit-reversal optimization. | |
| template<typename T = real_t> | |
| std::vector< T > | correlation::math::autocorrelate (const std::vector< T > &signal, std::vector< std::complex< T > > &workspace) |
| Computes the autocorrelation of a 1D real sequence using FFT. | |
| template<typename T = real_t> | |
| std::vector< T > | correlation::math::autocorrelate (const std::vector< T > &signal) |
| Convenience overload — allocates its own workspace. | |
Fast Fourier Transform (FFT) and autocorrelation utilities.