Skip to content

Commit

Permalink
Round down in sampleLogNormal to guarantee upper bound
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdave committed Sep 17, 2014
1 parent 7fc3bb7 commit 1638598
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ object GraphGenerators {
val Z = rand.nextGaussian()
X = math.exp(mu + sigma*Z)
}
math.round(X.toFloat)
math.floor(X).toInt
}

/**
Expand Down

0 comments on commit 1638598

Please sign in to comment.