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

Home » Public Forums » archive » QSIMP function
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: QSIMP function [message #85856 is a reply to message #85832] Fri, 13 September 2013 22:44 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Thursday, September 12, 2013 1:05:05 PM UTC-4, wlandsman wrote:
> One suggestion for improved accuracy is to interpolate your function at the midpoints of all your tabulated X values. You can use one of the options (e.g. spline,least-squares quadratic) in the INTERPOL() function without needing a loop. Then redo your trapezoidal integration routines but using twice as many points, then rebin your final answer by a factor of two.

Wayne, Maria asked me about this privately. Does interpolation really improve the accuracy? My first impression would be that it might help, or it might hurt, depending on how well the interpolation routine chosen reflects the underlying nature of the curve being sampled. I don't have any good intuition about how well this works in practice.

Thanks,
Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget programing - Please help!
Next Topic: The IDL library for Shuffled Complex Evolution (SCEUA)

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

Current Time: Sun Oct 12 16:55:52 PDT 2025

Total time taken to generate the page: 1.68325 seconds