Skip to content

Commit b7fc244

Browse files
authored
Merge pull request #6 from GeorchW/unicode-var-names
Fix unicode variable names
2 parents f9a7ecc + 20dcbdf commit b7fc244

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/geom/voronoi/cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "../../math/abs";
22

3-
function d3_geom_voronoiCell(site) {
3+
function d3_geom_voronoiCell(site) {
44
this.site = site;
55
this.edges = [];
66
}

src/math/random.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
d3.random = {
2-
normal: function(µ, σ) {
2+
normal: function(mu, sigma) {
33
var n = arguments.length;
4-
if (n < 2) σ = 1;
5-
if (n < 1) µ = 0;
4+
if (n < 2) sigma = 1;
5+
if (n < 1) mu = 0;
66
return function() {
77
var x, y, r;
88
do {
99
x = Math.random() * 2 - 1;
1010
y = Math.random() * 2 - 1;
1111
r = x * x + y * y;
1212
} while (!r || r > 1);
13-
return µ + σ * x * Math.sqrt(-2 * Math.log(r) / r);
13+
return mu + sigma * x * Math.sqrt(-2 * Math.log(r) / r);
1414
};
1515
},
1616
logNormal: function() {

0 commit comments

Comments
 (0)