AnsweredAssumed Answered

VRF : Interpolating to differently spaced array

Question asked by VRFuser on Jan 29, 1996
"Johannes Mulder" <JCM@eo.ie.philips.nl> wrote:
> To VRF : Interpolating to differently spaced array - revisited
>
> /* Function ReSample
>  *      purpose: map an array of samples into a differently
>  *               mapped array, using lineair interpolation
>  *
>  *      OrgF[0] must be lower  than NewF[0]
>  *      OrgF[M] must be higher than NewF[N-1]
>  *      to be sure interpolation works always properly
>  *

Thanks for the source!

One observation though - I glanced thru the code and so far as I can tell
it does the same (or very similar) job as the Build Arb Waveform object.

Is this code perhaps more efficient? Am I missing something?

Guess I was kind of hoping for a cubic spline fit rather than linear
interpolation, though I suppose one could alter that section of
this code appropriately.

Anyone have a cubic spline algorithm in C that could be spliced into
this function?

thanks

Stan Bischof
stanb@sr.hp.com


From: "Johannes Mulder" <JCM@eo.ie.philips.nl>
To: Stan Bischof <stanb@hpnmrsb2.sr.hp.com>
Date:          Mon, 29 Jan 1996 17:47:39 GMT+0100
Subject:       Re: VRF : Interpolating to differently spaced array

> From:          Stan Bischof <stanb@hpnmrsb2.sr.hp.com>
> Date:          Mon, 29 Jan 1996 08:14:43 -0800 (PST)
> To:            JCM@eo.ie.philips.nl
> Cc:            hpvxd_xc%hpislsup.lvld.hp.com@hplb.hpl.hp.com
> Subject:       Re: VRF : Interpolating to differently spaced array
>
> Thanks for the source!
>
> One observation though - I glanced thru the code and so far as I can tell
> it does the same (or very similar) job as the Build Arb Waveform object.
>
The big difference is that the output array does not need to be
equidistant (spelling OK?), and that is what I need. The resulting
array needs to match exactly the given frequencies. I don't know an
easy way to do this using any built-in function.
Thanks for your reaction.
With kind regards,

              Johannes Mulder
              Philips Electron Optics
              Building AAE-room 21
              P.O.B. 218
              5600 MD ACHT, the Netherlands
              tel +31 40 2766947
              fax +31 40 2766820

Outcomes