Skip to content

Commit

Permalink
minor changes to the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mou7 committed Jan 15, 2017
1 parent 5a5884a commit 90d82e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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]
Expand Down
Expand Up @@ -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)
}
Expand Down

0 comments on commit 90d82e1

Please sign in to comment.