question: public static double probOf ( int k , double lambda ) { return Math . exp ( ( k * Math . log ( lambda ) ) - lambda - Functions . logFactorial ( k ) ) ; }
target:  See the numerical formulation: https://en.wikipedia.org/wiki/Poisson_distribution.