diff --git a/src/geom/voronoi/cell.js b/src/geom/voronoi/cell.js index 8c6628d31c192..9f19de1fa6ebf 100644 --- a/src/geom/voronoi/cell.js +++ b/src/geom/voronoi/cell.js @@ -1,6 +1,6 @@ import "../../math/abs"; -function d3_geom_voronoiCell(site) { +function d3_geom_voronoiCell(site) { this.site = site; this.edges = []; } diff --git a/src/math/random.js b/src/math/random.js index d0c6ba07b92c3..487eabd87ebf4 100644 --- a/src/math/random.js +++ b/src/math/random.js @@ -1,8 +1,8 @@ d3.random = { - normal: function(µ, σ) { + normal: function(mu, sigma) { var n = arguments.length; - if (n < 2) σ = 1; - if (n < 1) µ = 0; + if (n < 2) sigma = 1; + if (n < 1) mu = 0; return function() { var x, y, r; do { @@ -10,7 +10,7 @@ d3.random = { y = Math.random() * 2 - 1; r = x * x + y * y; } while (!r || r > 1); - return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r); + return mu + sigma * x * Math.sqrt(-2 * Math.log(r) / r); }; }, logNormal: function() {