This returns the probability
of the occurrence of an integer
according to the Poisson distribution
where
is the average or expectation value of
.
Note that the argument may also be a real number. In this case what is returned is
The value
is not quite a probability density: it would need to be normalized by
in order for this to be true. However it does have the property that, if
,
.
interface poissonProb
real function poissonProbSingle(av, realI)
real(single), intent(in) :: av, realI
end function poissonProbSingle
real function poissonProbInt32(av, i)
real(single), intent(in) :: av
integer(int32), intent(in) :: i
end function poissonProbInt32
end interface