-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import cheminfo from 'eslint-config-cheminfo-typescript'; | ||
|
||
export default [ | ||
...cheminfo, | ||
{ | ||
rules: {} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,10 @@ export class PolynomialRegression extends BaseRegression { | |
* @param y - dependent or response variable | ||
* @param degree - degree of the polynomial regression, or array of powers to be used. When degree is an array, intercept at zero is forced to false/ignored. | ||
* @example `new PolynomialRegression(x, y, 2)`, in this case, you can pass the option `interceptAtZero`, if you need it. | ||
* @param options | ||
Check warning on line 21 in src/index.ts GitHub Actions / nodejs / lint-eslint
|
||
* @example `new PolynomialRegression(x, y, [1, 3, 5])` | ||
* Each of the degrees corresponds to a column, so if you have them switched, just do: | ||
* @example `new PolynomialRegression(x, y, [3, 1, 5])` | ||
* | ||
* @param options.interceptAtZero - force the polynomial regression so that f(0) = 0 | ||
*/ | ||
constructor( | ||
|
@@ -129,6 +129,7 @@ export class PolynomialRegression extends BaseRegression { | |
* @param y - dependent or response variable | ||
* @param degree - degree of the polynomial regression | ||
* @param options.interceptAtZero - force the polynomial regression so that $f(0) = 0$ | ||
Check warning on line 131 in src/index.ts GitHub Actions / nodejs / lint-eslint
|
||
* @param options | ||
Check warning on line 132 in src/index.ts GitHub Actions / nodejs / lint-eslint
|
||
*/ | ||
function regress( | ||
x: NumberArray, | ||
|