diff --git a/math/src/main/scala/breeze/stats/distributions/Gaussian.scala b/math/src/main/scala/breeze/stats/distributions/Gaussian.scala index f162fc25d..40e1de328 100644 --- a/math/src/main/scala/breeze/stats/distributions/Gaussian.scala +++ b/math/src/main/scala/breeze/stats/distributions/Gaussian.scala @@ -37,7 +37,7 @@ case class Gaussian(mu: Double, sigma: Double)(implicit rand: RandBasis = Rand) /** * Computes the probability that a Gaussian variable Z is within the interval [x, y]. - * This probaility is computed as P[Z < y] - P[Z < x]. + * This probability is computed as P[Z < y] - P[Z < x]. * @param x lower-end of the interval * @param y upper-end of the interval * @return probability that the Gaussian random variable Z lies in the interval [x, y] diff --git a/math/src/test/scala/breeze/stats/distributions/GaussianTest.scala b/math/src/test/scala/breeze/stats/distributions/GaussianTest.scala index e776ea93f..9a76975d4 100644 --- a/math/src/test/scala/breeze/stats/distributions/GaussianTest.scala +++ b/math/src/test/scala/breeze/stats/distributions/GaussianTest.scala @@ -57,7 +57,7 @@ class GaussianTest extends FunSuite with Checkers with UnivariateContinuousDistr assert(new Gaussian(0,1).unnormalizedLogPdf(1.0) === -0.5) } - test ("Gaussian.probability throws an exception when evluating 1.0 < N(0, 1) < 0.0") { + test ("Gaussian.probability throws an exception when evaluating 1.0 < N(0, 1) < 0.0") { val thrown = intercept[IllegalArgumentException] { new Gaussian(0, 1).probability(1.0, 0.0) }