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

Home » Public Forums » archive » Re: The Sky is Falling! (SMOOTH() edition)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: The Sky is Falling! (SMOOTH() edition) [message #68907] Fri, 27 November 2009 17:44
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
I see the following:

IDL> print, smooth([1,5,1,1], 3) ;--- both are integer type
1 2 2 1
IDL> print, smooth([1,5,1,1], 3.) ;--- integer array
1 2 2 1
IDL> print, smooth([1.,5.,1.,1.], 3) ;--- integer width
1.00000 2.33333 2.33333 1.00000
IDL> print, smooth([1.,5.,1.,1.], 3.) ;--- all floating-point
1.00000 2.33333 2.33333 1.00000

Similar for 2D arrays.
-M.
Re: The Sky is Falling! (SMOOTH() edition) [message #68908 is a reply to message #68907] Fri, 27 November 2009 15:32 Go to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
On Nov 27, 3:25 pm, Ed Hyer <ejh...@gmail.com> wrote:
> OK, I'm sure there's a perfectly reasonable explanation. So, can
> someone explain why SMOOTH(Array, Width), when given floating-point
> arguments to both Array and Width, returns only whole numbers?
>
> Awaiting restoration of my sanity,
>
> --Edward H.

/EDGE_TRUNCATE. You're welcome.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: The Sky is Falling! (SMOOTH() edition)
Next Topic: IDLgrWindow vs. IDLgrBuffer, font-rendering difference

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

Current Time: Wed Oct 08 16:46:38 PDT 2025

Total time taken to generate the page: 0.00544 seconds