-
Notifications
You must be signed in to change notification settings - Fork 0
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
57 additions
and
29 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
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,4 +1,26 @@ | ||
Simple curve-fitting algorithm: Curve fitting with single-variable or multivariate problems, using a genetic algorithm. | ||
Simple curve-fitting algorithm using a genetic-style algorithm for single-variable or multivariate problems. | ||
|
||
![NPM Version](https://img.shields.io/npm/v/datafit) | ||
![NPM Downloads](https://img.shields.io/npm/dt/datafit) | ||
![NPM Downloads](https://img.shields.io/npm/dt/datafit) | ||
|
||
## Installation | ||
|
||
`datafit` can be installed from the official [npm package repository](https://www.npmjs.com/package/datafit). It is highly recommended to install the latest version, which is installed by default with the following command. | ||
|
||
```shell | ||
npm i datafit | ||
``` | ||
|
||
## Getting Started | ||
|
||
`datafit` exports only 1 function, [`fit`](https://npm.nicfv.com/datafit/functions/fit-1.html) which is used for curve fitting. All other exports are purely for information and defining types used within this package. | ||
|
||
## Example | ||
|
||
### Single Variable | ||
|
||
In this example written in JavaScript, we will fit a 2nd degree polynomial to a set of (x,y) points. | ||
|
||
```js | ||
// TODO | ||
``` |
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