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

Home » Public Forums » archive » Re: smooth function and rounding error
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: smooth function and rounding error [message #69206 is a reply to message #69200] Thu, 17 December 2009 16:13 Go to previous message
jeanh is currently offline  jeanh
Messages: 79
Registered: November 2009
Member
> y=DBLARR(n)
> y=A

y will be of the same type as A, so int, float etc...

> y[i]=total(A[i-width/2:i+width/2-1])/width

I believe you want to divide by width+1, because you are considering
A[i] in your total. A;so, be sure that width is a float!

Jean

> many thanks,
> simona
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: array index summations
Next Topic: ROI points don't seem to get stored properly

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

Current Time: Fri Oct 10 05:27:50 PDT 2025

Total time taken to generate the page: 1.03941 seconds