Skip to content

Commit

Permalink
Fixed a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
milosgajdos committed Jan 28, 2019
1 parent 7aaee59 commit f6606e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand/rand.go
Expand Up @@ -58,7 +58,7 @@ func RouletteDrawN(p []float64, n int) ([]int, error) {
}

// Initialization: create the discrete CDF
// We know that csf is sorted in ascending order
// We know that cdf is sorted in ascending order
cdf := make([]float64, len(p))
floats.CumSum(cdf, p)

Expand Down

0 comments on commit f6606e5

Please sign in to comment.