/logistic-map

Logistic map algorithm and its improved algorithms.

Primary LanguageGoMIT LicenseMIT

logistic-map

Logistic map algorithm and its improved algorithms.

Build Status Coverage Status Go Report Card License

The 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

GoDoc

Logistic map

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).

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

License

MIT