We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8cbf8 commit 3734eb8Copy full SHA for 3734eb8
src/marks/linearRegression.js
@@ -32,7 +32,7 @@ class LinearRegression extends Mark {
32
this.z = z;
33
this.p = number(p);
34
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}`);
+ if (this.p !== null && !(0 < this.p && this.p <= 0.5)) throw new Error(`invalid p; not in [0, 0.5]: ${p}`);
36
if (!(this.precision > 0)) throw new Error(`invalid precision: ${precision}`);
37
}
38
render(I, {x, y}, channels, dimensions) {
0 commit comments