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

Home » Public Forums » archive » Re: Complex rebin
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: Complex rebin [message #34615 is a reply to message #34534] Fri, 28 March 2003 01:12 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
MKatz843@onebox.com (M. Katz) writes:

>> Any reason why REBIN doesn't take complex args?
>
> I can't say why REBIN doesn't take complex args, but I can say that
> you have to be very careful when you interpolate complex values if you
> want to have meaningful results.
>
> Consider these two numbers
> z1 = complex(1,0) = 1.
> z2 = complex(-1,0) = -1.
>
> Suppose you were using rebin to redice the size of a linear array by
> 2.
> Which of the following behaviors would you want?
>
> You could separately average x and y like this, and get zero:
> z_avg = (complex(1,0) + complex(-1,0))/2. = complex(0,0) = 0

This one. It's what all the other flavors of REBIN do.

It's the "compress" form of REBIN that I would be really interested
in, i.e. the ability to sum up loads of complex values.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 6.0
Next Topic: Is there a standard 'null' array?

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

Current Time: Sat Oct 11 07:09:09 PDT 2025

Total time taken to generate the page: 0.32373 seconds