Skip to content

Commit 3734eb8

Browse files
committed
allow p = 0.5
1 parent ca8cbf8 commit 3734eb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/marks/linearRegression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LinearRegression extends Mark {
3232
this.z = z;
3333
this.p = number(p);
3434
this.precision = +precision;
35-
if (this.p !== null && !(0 < this.p && this.p < 0.5)) throw new Error(`invalid p; not in [0, 0.5): ${p}`);
35+
if (this.p !== null && !(0 < this.p && this.p <= 0.5)) throw new Error(`invalid p; not in [0, 0.5]: ${p}`);
3636
if (!(this.precision > 0)) throw new Error(`invalid precision: ${precision}`);
3737
}
3838
render(I, {x, y}, channels, dimensions) {

0 commit comments

Comments
 (0)