comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Subtracting arrays of same dimension, different size - interpolating one to fit the other
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Subtracting arrays of same dimension, different size - interpolating one to fit the other [message #73358 is a reply to message #73211] Mon, 01 November 2010 10:17 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
recalculate the model data to match the measured data. Then direct compare.

If you don't have access to the model software itself, then try to get your hands on it. Otherwise you're going to have
to interpolate. I always interpolate model data (initially at least) since it is typically better behaved (e.g.
smoother/less noisy) than measured data and thus less likely to suffer from egregious interpolation artifacts.

Now, which interpolation method you employ (linear, polynomial, spline, fourier(!) etc) is a decision *you* need to make
based on the data.

cheers,

paulv

polystethylene wrote:
> Hi All,
>
> I have some data and a model, both 2 column - one column phase, the
> second column a ratio...
>
> They both have different sizes, and the model's phase points don't
> match up with those of the data...
>
> I'd like to plot the residual i.e. data - model, but obviously that's
> not immediately accessible without interpolating the model so that
> every data phase point has a corresponding model value...
>
> Anyone got any ideas how I can do this?
>
> Please no-one say histogram :-/ *crosses fingers*
>
> Cheers,
>
> Stef
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Understanding IDLanROI
Next Topic: Re: doubt in chisq value

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:49:15 PDT 2025

Total time taken to generate the page: 1.12018 seconds