diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-20 12:44:38 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-20 12:44:38 -0300 |
commit | 2ede6db86243e59223cd89e6debd7107d02eabd5 (patch) | |
tree | b4371616f8aa124a5f43b6a31e1d199f628fdccf /log-fourier.hpp | |
parent | 70e78cf066aae300fede3745e9d9ea779a6264cc (diff) | |
download | code-2ede6db86243e59223cd89e6debd7107d02eabd5.tar.gz code-2ede6db86243e59223cd89e6debd7107d02eabd5.tar.bz2 code-2ede6db86243e59223cd89e6debd7107d02eabd5.zip |
Standardized saving and loading of files
Diffstat (limited to 'log-fourier.hpp')
-rw-r--r-- | log-fourier.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/log-fourier.hpp b/log-fourier.hpp index f57c6bc..b11db0f 100644 --- a/log-fourier.hpp +++ b/log-fourier.hpp @@ -31,3 +31,14 @@ public: std::vector<Real> inverse(const std::vector<Complex>& ĉ); }; +std::string logFourierFile(std::string prefix, unsigned p, unsigned s, Real λ, Real τ₀, Real β, unsigned log2n, Real Δτ, Real k); + +void logFourierSave(const std::vector<Real>& C, const std::vector<Real>& R, const std::vector<Complex>& Ct, const std::vector<Complex>& Rt, unsigned p, unsigned s, Real λ, Real τ₀, Real β, unsigned log2n, Real Δτ, Real k); + +bool logFourierLoad(std::vector<Real>& C, std::vector<Real>& R, std::vector<Complex>& Ct, std::vector<Complex>& Rt, unsigned p, unsigned s, Real λ, Real τ₀, Real β, unsigned log2n, Real Δτ, Real k); + +std::tuple<std::vector<Complex>, std::vector<Complex>> RddfCtdfCt(LogarithmicFourierTransform& fft, const std::vector<Real>& C, const std::vector<Real>& R, unsigned p, unsigned s, Real λ); + +Real estimateZ(LogarithmicFourierTransform& fft, const std::vector<Real>& C, const std::vector<Complex>& Ct, const std::vector<Real>& R, const std::vector<Complex>& Rt, unsigned p, unsigned s, Real λ, Real τ₀, Real β); + +Real energy(const LogarithmicFourierTransform& fft, std::vector<Real>& C, const std::vector<Real>& R, unsigned p, unsigned s, Real λ, Real β); |