Skip to content

Commit

Permalink
Merge pull request #22 from kevin-j-m/argument-error-typo
Browse files Browse the repository at this point in the history
Fix typo in beta distribution argument error
  • Loading branch information
phillbaker authored Feb 10, 2024
2 parents 588da19 + a64b23d commit 8bbcddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubystats/beta_distribution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class BetaDistribution < Rubystats::ProbabilityDistribution
#dgr_q = degrees of freedom q
def initialize(dgr_p, dgr_q)
if dgr_p <= 0 || dgr_q <= 0
raise ArgumentError.new("Paramters must be greater than zero.")
raise ArgumentError.new("Parameters must be greater than zero.")
end
@p = dgr_p.to_f
@q = dgr_q.to_f
Expand Down

0 comments on commit 8bbcddd

Please sign in to comment.