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

Home » Public Forums » archive » Re: Another MPFIT question
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: Another MPFIT question [message #62826] Sun, 12 October 2008 03:56 Go to previous message
MichaelT is currently offline  MichaelT
Messages: 52
Registered: May 2006
Member
Ok, I just had this idea:

function myfunc, x, p
c0 = (p[0]+p[1]+p[2]+p[3]) > 1d
c1 = p[0] / c0
c2 = p[1] / c0
c3 = p[2] / c0
c4 = p[3] / c0
return, somefunctionof(c1,c2,c3,c4)
End

It does really limit c1+...+c4 to [0, 1] and the parameters are also
limited to [0, 1]. But, I'm not so sure whether or not it is really ok
to do it this way.

Michael
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to obtain pixel location
Next Topic: Re: Transpose(A)*P*A

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

Current Time: Wed Oct 08 18:09:33 PDT 2025

Total time taken to generate the page: 0.00330 seconds