Hi Rainman,
Are you thinking on the following algorithm?:
http://en.wikipedia.org/wiki/Scale-in...
IDL does not come with it. We can certainly added to a Feature Request. I think at the moment you will need to write it yourself. Apologies about this, I hope it's not a very complicated algorithm.
Regards,
Fernando