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 <
[email protected]> 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
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to