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

Home » Public Forums » archive » Fast way to calculate sum of discrete poisson distribution
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Fast way to calculate sum of discrete poisson distribution [message #52725] Sat, 24 February 2007 13:10
bk1 is currently offline  bk1
Messages: 7
Registered: February 2007
Junior Member
I have been struggeling with this for a while. Basically I need to
calculate the quadratic sum of the discrete poisson distribution:

k = INDGEN(8)

sum = TOTAL( p^k / FACTORIAL(k) * EXP(-p) * k^2 )

This workes fine for a scalar p. Is there a way to calculate the
quadratic sum for every element of an array p without using a loop?
Thanks for your help!

Bernd
[Message index]
 
Read Message
Previous Topic: Specify the degree of accuracy of a floating point number
Next Topic: Re: Fast way to calculate sum of discrete poisson distribution

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

Current Time: Wed Oct 08 19:02:00 PDT 2025

Total time taken to generate the page: 0.00458 seconds