Re: The Sky is Falling! (SMOOTH() edition) [message #68907] |
Fri, 27 November 2009 17:44 |
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  |
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.
|
|
|