lib/distribution/poisson/gsl.rb in distribution-0.7.3 vs lib/distribution/poisson/gsl.rb in distribution-0.8.0
- old
+ new
@@ -1,17 +1,17 @@
module Distribution
module Poisson
module GSL_
class << self
- def pdf(k,l)
- return 0 if k<0
- GSL::Ran.poisson_pdf(k,l.to_f)
+ def pdf(k, l)
+ return 0 if k < 0
+ GSL::Ran.poisson_pdf(k, l.to_f)
end
- def cdf(k,l)
- return 0 if k<0
+
+ def cdf(k, l)
+ return 0 if k < 0
GSL::Cdf.poisson_P(k, l.to_f)
end
-
end
end
end
-end
\ No newline at end of file
+end