chebfun

32 views
Skip to first unread message

Robert Boš

unread,
Mar 13, 2024, 3:52:17 AM3/13/24
to chebfun-users
How can I obtain a Chebyshev function for points in 2D space that are not uniformly distributed along the independent axis? For example, the data are described with two vectors: the first vector contains values on the independent axis (x), and the second vector contains values on the dependent axis (y).

Kevin Silmore

unread,
Mar 13, 2024, 7:10:51 AM3/13/24
to Robert Boš, chebfun-users
Hi Robert,

Long-time casual chebfun user here. You could always use the interp1 function (and you have a variety of different interpolants from which to choose), but do note that importantly, chebfun (and interpolant properties in general) benefits significantly in general from sampling functions at specific grid points (the roots of Chebyshev polynomials or equispaced points, in which case some special Floater-Hormann interpolants are used).

From the scientific standpoint, it's also worth asking: is your data noisy? If so, it's worth thinking about whether you really want an interpolant or if you're looking for some kind of optimization-based smoothing function. Chebfun can handle basic smoothing under known sampling errors on Chebyshev grids but not with interp1 to my knowledge (and I'm not sure how it would necessarily). Curious if others can shed more light on using chebfun in the presence of sampling errors that I don't know about!

- Kevin Silmore

On Wed, Mar 13, 2024, 3:52 AM Robert Boš <chetg...@gmail.com> wrote:
How can I obtain a Chebyshev function for points in 2D space that are not uniformly distributed along the independent axis? For example, the data are described with two vectors: the first vector contains values on the independent axis (x), and the second vector contains values on the dependent axis (y).

--
You received this message because you are subscribed to the Google Groups "chebfun-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chebfun-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/chebfun-users/33893659-f36f-4346-83ce-d313b55a9c24n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages