https://github.com/windomz/logistic-map
Logistic map algorithm and its improved algorithms.
https://github.com/windomz/logistic-map
logistic-map
Last synced: about 1 year ago
JSON representation
Logistic map algorithm and its improved algorithms.
- Host: GitHub
- URL: https://github.com/windomz/logistic-map
- Owner: WindomZ
- License: mit
- Created: 2017-07-16T16:43:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T10:32:06.000Z (almost 9 years ago)
- Last Synced: 2025-02-15T07:40:42.429Z (over 1 year ago)
- Topics: logistic-map
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logistic-map
> Logistic map algorithm and its improved algorithms.
[](https://travis-ci.org/WindomZ/logistic-map)
[](https://coveralls.io/github/WindomZ/logistic-map?branch=master)
[](https://goreportcard.com/report/github.com/WindomZ/logistic-map)
[](https://opensource.org/licenses/MIT)
The [logistic map](https://en.wikipedia.org/wiki/Logistic_map) is a polynomial mapping (equivalently, recurrence relation) of degree 2,
often cited as an archetypal example of how complex, chaotic behaviour can arise from very simple non-linear dynamical equations.
## Usage
[](https://godoc.org/github.com/WindomZ/logistic-map)
### Logistic map
```go
import "github.com/WindomZ/logistic-map"
// Parameter u=3.999, x=0.2 and 5000 logistic map iterates.
result := logistic.LogisticMap(3.999, 0.2, 5000)
// len(result) == 5001', include result[0] == x
...
```
### Improved logistic map
Automatically adjust parameter `u` in `(3.569945673, 4)`.
```go
import "github.com/WindomZ/logistic-map"
// Parameter x=0.2 and 5000 logistic map iterates.
// Regulation amplification factor is 100.
result := logistic.LogisticImprovedMap(0.2, 100, 5000)
// len(result) == 5001', include result[0] == x
...
```
## Reference
[Wiki](https://en.wikipedia.org/wiki/Logistic_map)
## License
[MIT](https://github.com/WindomZ/logistic-map/blob/master/LICENSE)