From 4a2f1febf8fc9255cd424f28f79a2dce41569e2a Mon Sep 17 00:00:00 2001 From: NAThompson Date: Sat, 22 Feb 2020 14:55:22 -0500 Subject: [PATCH] Bootstrap Chebyshev transform [CI SKIP] --- .../bootstrap_chebyshev.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 example/daubechies_wavelets/bootstrap_chebyshev.cpp diff --git a/example/daubechies_wavelets/bootstrap_chebyshev.cpp b/example/daubechies_wavelets/bootstrap_chebyshev.cpp new file mode 100644 index 000000000..b158fabcd --- /dev/null +++ b/example/daubechies_wavelets/bootstrap_chebyshev.cpp @@ -0,0 +1,18 @@ +#include +#include +#include + +template +void bootstrap() +{ + std::cout << "Computing phi. . .\n"; + auto phi = boost::math::daubechies_scaling(); + std::cout << "Computing Chebyshev transform of phi.\n"; + auto cheb = boost::math::chebyshev_transform(phi, phi.support().first, phi.support().second); + std::cout << "Number of coefficients = " << cheb.coefficients().size() << "\n"; +} + +int main() +{ + bootstrap(); +} \ No newline at end of file