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

Home » Public Forums » archive » Help needed!!
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Help needed!! [message #70513] Fri, 16 April 2010 08:49 Go to previous message
bala murugan is currently offline  bala murugan
Messages: 23
Registered: April 2010
Junior Member
Hi people,

I am new to IDL. This is my first program in IDL. Can somebody point
out the errors in my code. I have been struggling to get it right.

CODE:

FUNCTION poissondist,fLambda,N
r = RANDOMU(SEED,1)
FOR j=1,N,1 DO BEGIN
x=poisson(j,fLambda)
if (x EQ r) THEN a[i]=j
ENDFOR
RETURN,a
END



In the above code, the function "poisson" was written by me. It is as
follows,

CODE:

FUNCTION poisson,a,b
x = (b^a)/(exp(b)*factorial(a))
RETURN,x
END

Looking forward to your reply.

Thanks,
B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Virtual machine popup
Next Topic: Sports Health Insurance and Exclusions

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

Current Time: Wed Oct 08 15:33:53 PDT 2025

Total time taken to generate the page: 0.00420 seconds