Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option to specify the number of coefficients #886

Closed
ufechner7 opened this issue May 28, 2023 · 2 comments
Closed

Add the option to specify the number of coefficients #886

ufechner7 opened this issue May 28, 2023 · 2 comments

Comments

@ufechner7
Copy link

I currently use this code:

f = Fun(discrete_signal, Chebyshev(Interval(t1[1],t1[end])))
f1 = Fun(Chebyshev(Interval(t1[1],t1[end])), coefficients(f)[1:5])

to approximate the function discrete_signal with a Chebyshev function using 5 coefficients. That is a waste of cpu cycles, first to calculate thousends of coefficients just to through most of them away. Please add an option to specify the max number of coefficients.

@dlfivefifty
Copy link
Member

Fun(f, sp, n)

@ufechner7
Copy link
Author

Nice!

Is this documented anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants