Skip to content

Commit

Permalink
Update probability_distribution.cr
Browse files Browse the repository at this point in the history
  • Loading branch information
awildberg authored Oct 14, 2021
1 parent 94911d8 commit 4cd7775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributions/probability_distribution.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "../distributions/modules"
require "distributions/modules"

module Crystalstats
# The ProbabilityDistribution superclass provides an object
Expand Down Expand Up @@ -48,7 +48,7 @@ module Crystalstats

def pdf(a : Array(Int32 | Float64))
pdf_vals = [] of Int32 | Float64
(0...a.size).each do |i|
(0...a.size).each do |i| # changed to only output provided number of random numbers
pdf_vals << get_pdf(a[i])
end
return pdf_vals
Expand Down

0 comments on commit 4cd7775

Please sign in to comment.