From 2ede6db86243e59223cd89e6debd7107d02eabd5 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Sun, 20 Apr 2025 12:44:38 -0300 Subject: Standardized saving and loading of files --- log-fourier.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'log-fourier.hpp') 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 inverse(const std::vector& ĉ); }; +std::string logFourierFile(std::string prefix, unsigned p, unsigned s, Real λ, Real τ₀, Real β, unsigned log2n, Real Δτ, Real k); + +void logFourierSave(const std::vector& C, const std::vector& R, const std::vector& Ct, const std::vector& Rt, unsigned p, unsigned s, Real λ, Real τ₀, Real β, unsigned log2n, Real Δτ, Real k); + +bool logFourierLoad(std::vector& C, std::vector& R, std::vector& Ct, std::vector& Rt, unsigned p, unsigned s, Real λ, Real τ₀, Real β, unsigned log2n, Real Δτ, Real k); + +std::tuple, std::vector> RddfCtdfCt(LogarithmicFourierTransform& fft, const std::vector& C, const std::vector& R, unsigned p, unsigned s, Real λ); + +Real estimateZ(LogarithmicFourierTransform& fft, const std::vector& C, const std::vector& Ct, const std::vector& R, const std::vector& Rt, unsigned p, unsigned s, Real λ, Real τ₀, Real β); + +Real energy(const LogarithmicFourierTransform& fft, std::vector& C, const std::vector& R, unsigned p, unsigned s, Real λ, Real β); -- cgit v1.2.3-70-g09d2