Skip to content

Commit

Permalink
fix: add missing A and B in class type (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 authored Nov 1, 2024
1 parent 3e932b6 commit 1daf65e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Exponential Regression.

## Usage

This calculates parameters A and B for the equation `y = A * e^(B * x)`.
This calculates parameters A and B for the equation `y = B * e^(A * x)`.

```js
import { ExponentialRegression } from 'ml-regression-exponential';
Expand Down
10 changes: 10 additions & 0 deletions regression-exponential.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ export interface ExponentialRegressionModel {
B: number;
}
export declare class ExponentialRegression extends BaseRegression {
/**
* The exponent coefficient `A` in the equation `y = B * e^(A * x)`.
*/
A: number;

/**
* The coefficient `B` in the equation `y = B * e^(A * x)`.
*/
B: number;

constructor(x: number[], y: number[]);

static load(model: ExponentialRegressionModel): ExponentialRegression;
Expand Down

0 comments on commit 1daf65e

Please sign in to comment.