Sha256: b6adabb38c61bc34a1b00718d7f7980b0342b65be533ea28c7bd55485a3a828c

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

module Distribution
  module Poisson
    module Java_
      class << self
      #==
      # Create the PoissonDistributionImpl object for use in calculations
      # with mean of l
      def create_distribution(l)
        PoissonDistributionImpl.new(l)
      end
      
      #==
      # 
      def pdf(k,l)
        dist = create_distribution(l)
        dist.probability(k)
      end
      
      def cdf(k,l)
        dist = create_distribution(l)
        dist.cumulativeProbability(k)
      end
      
#      def p_value(pr,l)
#        dist = create_distribution(l)
#        dist.inverseCumulativeProbability(pr)
#      end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
distribution-0.7.3 lib/distribution/poisson/java.rb
distribution-0.7.2 lib/distribution/poisson/java.rb
distribution-0.7.1 lib/distribution/poisson/java.rb
distribution-0.7.0 lib/distribution/poisson/java.rb