Code Monkey home page Code Monkey logo

Comments (4)

ajt60gaibb avatar ajt60gaibb commented on June 16, 2024

What about this?

FOURIER -> LEGENDRE:
One can evaluation an n-degree Fourier expansion at n evaluation points in O(n log n) operations. One can pick a Chebyshev grid as the evaluation points and then do a fast cheb2leg transform.

LEGENDRE -> FOURIER:
A little more difficult, but one can evaluate an n-degree Legendre expansion at n equispaced points in O(n log n) operations. This will require a little more work on an NDCT. Then, do an IFFT for the Fourier coefficients.

With the oversampling of m = O(n^2), I suspect that one can do the transform in at most O(m log m).

from fasttransforms.jl.

MikaelSlevinsky avatar MikaelSlevinsky commented on June 16, 2024

As far as I know, what's special about the Adcock-Hansen method is that the conversion assimilates the convergence properties of the new Hilbert space.

If I take the Fourier expansion coefficients of ex, on [0,2pi), then it will not converge uniformly due to the Gibbs phenomenon. But the Adcock-Hansen method uses the (condition number approximately 1, rectangular) matrix of connection coefficients to convert to a Legendre expansion that is supposed to converge in L2 and uniformly.

The stringent requirement is exact Fourier expansion coefficients, though, since Fourier interpolant coefficients are subject to aliasing.

from fasttransforms.jl.

MikaelSlevinsky avatar MikaelSlevinsky commented on June 16, 2024

To be honest, I haven't seriously looked at adding this, it's just on the wish list. Maybe the oversampling is enough to resolve Gibbs, and then your proposal would be faster!

from fasttransforms.jl.

ajt60gaibb avatar ajt60gaibb commented on June 16, 2024

No, you're right. I forgot about Gibbs issues. You need something like least squares.

I derived a fast(er) algorithm for least squares with Chebyshev in Section 7 of https://arxiv.org/pdf/1605.09601.pdf. This is probably useful if you go ahead.

from fasttransforms.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.