From a64b23da98c577fff64f8be767e1d129a94f5b4a Mon Sep 17 00:00:00 2001 From: Kevin Murphy Date: Thu, 1 Feb 2024 10:39:44 -0500 Subject: [PATCH] Fix typo in beta distribution argument error The error when alpha or beta are not greater than zero misspelled "parameters". --- lib/rubystats/beta_distribution.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rubystats/beta_distribution.rb b/lib/rubystats/beta_distribution.rb index 01c218d..b8eb73e 100755 --- a/lib/rubystats/beta_distribution.rb +++ b/lib/rubystats/beta_distribution.rb @@ -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