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

Home » Public Forums » archive » Re: Placing constraints on Interpol
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: Placing constraints on Interpol [message #55720] Tue, 04 September 2007 07:22
mattf is currently offline  mattf
Messages: 13
Registered: January 2007
Junior Member
On Sep 3, 3:23 pm, Vidhya <vidh...@gmail.com> wrote:
> Dear All,
>
> Is it possible in IDL to place constraints while interpolation such
> that the elements should not be zero and all the elements add up to 1?
>
> Any ideas?
>
> Vidhya

Generally, natural constraints on interpolation are -local- (e.g.,
constraints on the value or slope of interpolated data), but the
constraints you're talking about sound global. This suggests that you
should work backwards-- start out with an approximate global solution
that satisfies your global constraints, and then make small variations
on that starting solution (based on local data) that maintain the
constraints.
Re: Placing constraints on Interpol [message #55724 is a reply to message #55720] Tue, 04 September 2007 05:17 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Sep 3, 3:23 pm, Vidhya <vidh...@gmail.com> wrote:
> Dear All,
>
> Is it possible in IDL to place constraints while interpolation such
> that the elements should not be zero and all the elements add up to 1?
>
> Any ideas?
>
> Vidhya

It would seem to me that this would depend on the details of your data
set. For starters, if you don't want anything to interpolate to zero
then you should split up the interpolation into two steps - once for
the positive, once for the negative. As for making everything add up
to one, I don't see the way to do that, conceptually. After all, for
everything to add up to one will depend on a) the 'magnitude' of the
values you are interpolating between and b) the number of elements you
are interpolating. If you have a large number of elements and you
want to add them up to one, then the values you are interpolating
between MUST be much smaller than one. Either that, or after the
interpolation is done just weigh the elements so they add up to one.
i.e. elements /= total(elements)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Destroying Multiple Widgets
Next Topic: caling f90

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

Current Time: Thu Oct 09 06:03:28 PDT 2025

Total time taken to generate the page: 0.00649 seconds