[Jprogramming] [Jgeneral] interpolation (equidistant re-sampling)
Scott Locklin
locklin.scott at gmail.com
Fri May 7 11:12:08 UTC 2021
FWIIW there's a splines mini package here:
https://www.astro.umd.edu/~jph/J_page.html
-SL
On Fri, May 7, 2021 at 11:58 AM 'Rudolf Sykora' via Programming <
programming at jsoftware.com> wrote:
> Dear Raul,
>
>
> thanks for your writing, and also for directing this from the general to
> the programming forum, where I probably should have posted it.
>
> On the topic. I am afraid you misunderstood what I meant. The data
> as a whole do not follow a simple trend, like lying on a line. they can
> be even quite random. The task is to go from
>
> X: 0 5 6 26
> Y: 10 _10 80 100
>
> to, say:
>
> U: 0 5 10 15 20 25 30 NB. Equidistant mesh.
> V: 10 _10 84 90 94 99 104 NB. Linear interpolation and extrapolation
> when needed.
> NB. The numbers with U>5 are rounded here for
> readability.
> NB. If U=26 were, by chance, in the mesh,
> NB. the value would be (exactly) 100.
>
> (This is not what the data look like in reality, but as an example it
> could suffice.)
>
> Thanks once more!
>
>
> Ruda
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list