Skip to content

Commit

Permalink
Fix typo in beta distribution argument error
Browse files Browse the repository at this point in the history
The error when alpha or beta are not greater than zero misspelled
"parameters".
  • Loading branch information
kevin-j-m committed Feb 1, 2024
1 parent 588da19 commit a64b23d
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 a64b23d

Please sign in to comment.