Skip to content

Commit

Permalink
Datafit v1.3.1 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfv authored Mar 20, 2024
1 parent 1f7fcc9 commit f0eb246
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions datafit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.3.1

- Fix broken link in readme

## 1.3.0

- `maxDeviation` is now a normalized input
Expand Down
2 changes: 1 addition & 1 deletion datafit/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 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. `fit()` uses a genetic-style algorithm to fit a curve to. How it works is that it generates many sets of parameters to test, and keeps ones with smaller error than the previous iteration. Parameter sets with larger errors are discarded. Each subsequent iteration uses the sets of parameters with the least error and "mutates" them randomly.
`datafit` exports only 1 function, [`fit()`](https://npm.nicfv.com/datafit/functions/fit.html) which is used for curve fitting. All other exports are purely for information and defining types used within this package. `fit()` uses a genetic-style algorithm to fit a curve to. How it works is that it generates many sets of parameters to test, and keeps ones with smaller error than the previous iteration. Parameter sets with larger errors are discarded. Each subsequent iteration uses the sets of parameters with the least error and "mutates" them randomly.

> Because of these random mutations, running the same code multiple times may yield slightly different results. See [best practices](#best-practices) for mitigation tactics.
Expand Down
2 changes: 1 addition & 1 deletion datafit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datafit",
"version": "1.3.0",
"version": "1.3.1",
"description": "Simple curve-fitting algorithm",
"homepage": "https://npm.nicfv.com/datafit",
"main": "dist/index.js",
Expand Down

0 comments on commit f0eb246

Please sign in to comment.