-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: TS definition was wrong (still the default)
- Loading branch information
Showing
1 changed file
with
8 additions
and
13 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,19 +1,14 @@ | ||
import BaseRegression from 'ml-regression-base'; | ||
import { BaseRegression } from 'ml-regression-base'; | ||
|
||
declare namespace ExponentialRegression { | ||
export interface ExponentialRegressionModel { | ||
name: 'exponentialRegression'; | ||
A: number; | ||
B: number; | ||
} | ||
export interface ExponentialRegressionModel { | ||
name: 'exponentialRegression'; | ||
A: number; | ||
B: number; | ||
} | ||
|
||
declare class ExponentialRegression extends BaseRegression { | ||
export declare class ExponentialRegression extends BaseRegression { | ||
constructor(x: number[], y: number[]); | ||
|
||
static load(model: ExponentialRegression.ExponentialRegressionModel): ExponentialRegression; | ||
static load(model: ExponentialRegressionModel): ExponentialRegression; | ||
|
||
toJSON(): ExponentialRegression.ExponentialRegressionModel; | ||
toJSON(): ExponentialRegressionModel; | ||
} | ||
|
||
export = ExponentialRegression; |