nolds


Namenolds JSON
Version 0.5.2 PyPI version JSON
download
home_pagehttps://github.com/CSchoel/nolds
SummaryNonlinear measures for dynamical systems (based on one-dimensional time series)
upload_time2019-06-16 11:47:43
maintainer
docs_urlNone
authorChristopher Schölzel
requires_python
licenseMIT
keywords nonlinear dynamical system chaos lyapunov hurst hurst exponent rescaled range dfa detrended fluctuation analysis sample entropy correlation dimension
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            NOnLinear measures for Dynamical Systems (nolds)
================================================

Nolds is a small numpy-based library that provides an implementation and a learning resource for nonlinear measures for dynamical systems based on one-dimensional time series.
Currently the following measures are implemented:

**sample entropy** (``sampen``)
  Measures the complexity of a time-series, based on approximate entropy
**correlation dimension** (``corr_dim``)
  A measure of the *fractal dimension* of a time series which is also related to complexity.
**Lyapunov exponent** (``lyap_r``, ``lyap_e``)
  Positive Lyapunov exponents indicate chaos and unpredictability.
  Nolds provides the algorithm of Rosenstein et al. (``lyap_r``) to estimate the largest Lyapunov exponent and the algorithm of Eckmann et al. (``lyap_e``) to estimate the whole spectrum of Lyapunov exponents.
**Hurst exponent** (``hurst_rs``)
	The hurst exponent is a measure of the "long-term memory" of a time series.
	It can be used to determine whether the time series is more, less, or equally likely to increase if it has increased in previous steps.
	This property makes the Hurst exponent especially interesting for the analysis of stock data.
**detrended fluctuation analysis (DFA)** (``dfa``)
	DFA measures the Hurst parameter *H*, which is very similar to the Hurst exponent.
	The main difference is that DFA can be used for non-stationary processes (whose mean and/or variance change over time).

Example
-------

::

	import nolds
	import numpy as np

	rwalk = np.cumsum(np.random.random(1000))
	h = nolds.dfa(rwalk)

Requirements
------------
Nolds supports Python 2 (>= 2.7) and 3 (>= 3.4) from one code source. It requires the package numpy_.

These are the only hard requirements, but some functions will need other packages:

* If you want to use the RANSAC algorithm for line fitting, you will also need the package sklearn_.
* For the true random numbers generated by ``nolds.qrandom`` you need the package quantumrandom_.
* The plotting functions in ``nolds.examples`` require the package matplotlib_.

.. _numpy: http://numpy.scipy.org/
.. _sklearn: http://scikit-learn.org/stable/
.. _quantumrandom: https://pypi.python.org/pypi/quantumrandom/1.9.0
.. _matplotlib: https://matplotlib.org/

Installation
------------
Nolds is available through PyPI and can be installed using pip:

``pip install nolds``

You can test your installation by running some sample code with:

``python -m nolds.examples lyapunov-logistic``

Alternatively, if you do not have matplotlib_ installed, you can run the unittests with:

``python -m unittest nolds.test_measures``

Documentation
-------------

Nolds is designed as a learning resource for the measures mentioned above.
Therefore the corresponding functions feature extensive documentation that not only explains the interface but also the algorithm used and points the user to additional reference code and papers.
The documentation can be found in the code, but it is also available as `HTML-Version <https://cschoel.github.io/nolds/>`_ and on `Read the Docs <http://nolds.readthedocs.io/>`_.

The relevant measures can be found in the file ``nolds/measures.py``.


Contact information
-------------------

If you have any questions, suggestions or corrections, you can find my contact
information on my blog_.

.. _blog: http://arbitrary-but-fixed.net/



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CSchoel/nolds",
    "name": "nolds",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "nonlinear,dynamical system,chaos,lyapunov,hurst,hurst exponent,rescaled range,DFA,detrended fluctuation analysis,sample entropy,correlation dimension",
    "author": "Christopher Sch\u00f6lzel",
    "author_email": "christopher.schoelzel@gmx.net",
    "download_url": "https://github.com/CSchoel/nolds/tarball/0.5.2",
    "platform": "any",
    "description": "NOnLinear measures for Dynamical Systems (nolds)\n================================================\n\nNolds is a small numpy-based library that provides an implementation and a learning resource for nonlinear measures for dynamical systems based on one-dimensional time series.\nCurrently the following measures are implemented:\n\n**sample entropy** (``sampen``)\n  Measures the complexity of a time-series, based on approximate entropy\n**correlation dimension** (``corr_dim``)\n  A measure of the *fractal dimension* of a time series which is also related to complexity.\n**Lyapunov exponent** (``lyap_r``, ``lyap_e``)\n  Positive Lyapunov exponents indicate chaos and unpredictability.\n  Nolds provides the algorithm of Rosenstein et al. (``lyap_r``) to estimate the largest Lyapunov exponent and the algorithm of Eckmann et al. (``lyap_e``) to estimate the whole spectrum of Lyapunov exponents.\n**Hurst exponent** (``hurst_rs``)\n\tThe hurst exponent is a measure of the \"long-term memory\" of a time series.\n\tIt can be used to determine whether the time series is more, less, or equally likely to increase if it has increased in previous steps.\n\tThis property makes the Hurst exponent especially interesting for the analysis of stock data.\n**detrended fluctuation analysis (DFA)** (``dfa``)\n\tDFA measures the Hurst parameter *H*, which is very similar to the Hurst exponent.\n\tThe main difference is that DFA can be used for non-stationary processes (whose mean and/or variance change over time).\n\nExample\n-------\n\n::\n\n\timport nolds\n\timport numpy as np\n\n\trwalk = np.cumsum(np.random.random(1000))\n\th = nolds.dfa(rwalk)\n\nRequirements\n------------\nNolds supports Python 2 (>= 2.7) and 3 (>= 3.4) from one code source. It requires the package numpy_.\n\nThese are the only hard requirements, but some functions will need other packages:\n\n* If you want to use the RANSAC algorithm for line fitting, you will also need the package sklearn_.\n* For the true random numbers generated by ``nolds.qrandom`` you need the package quantumrandom_.\n* The plotting functions in ``nolds.examples`` require the package matplotlib_.\n\n.. _numpy: http://numpy.scipy.org/\n.. _sklearn: http://scikit-learn.org/stable/\n.. _quantumrandom: https://pypi.python.org/pypi/quantumrandom/1.9.0\n.. _matplotlib: https://matplotlib.org/\n\nInstallation\n------------\nNolds is available through PyPI and can be installed using pip:\n\n``pip install nolds``\n\nYou can test your installation by running some sample code with:\n\n``python -m nolds.examples lyapunov-logistic``\n\nAlternatively, if you do not have matplotlib_ installed, you can run the unittests with:\n\n``python -m unittest nolds.test_measures``\n\nDocumentation\n-------------\n\nNolds is designed as a learning resource for the measures mentioned above.\nTherefore the corresponding functions feature extensive documentation that not only explains the interface but also the algorithm used and points the user to additional reference code and papers.\nThe documentation can be found in the code, but it is also available as `HTML-Version <https://cschoel.github.io/nolds/>`_ and on `Read the Docs <http://nolds.readthedocs.io/>`_.\n\nThe relevant measures can be found in the file ``nolds/measures.py``.\n\n\nContact information\n-------------------\n\nIf you have any questions, suggestions or corrections, you can find my contact\ninformation on my blog_.\n\n.. _blog: http://arbitrary-but-fixed.net/\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Nonlinear measures for dynamical systems (based on one-dimensional time series)",
    "version": "0.5.2",
    "project_urls": {
        "Download": "https://github.com/CSchoel/nolds/tarball/0.5.2",
        "Homepage": "https://github.com/CSchoel/nolds"
    },
    "split_keywords": [
        "nonlinear",
        "dynamical system",
        "chaos",
        "lyapunov",
        "hurst",
        "hurst exponent",
        "rescaled range",
        "dfa",
        "detrended fluctuation analysis",
        "sample entropy",
        "correlation dimension"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "672860d734bb74181f3a36d685c63b18481789fd54d6c25124662e7195e2d5ed",
                "md5": "b6c8e7aaa94c9fd6d063aa2c57966a81",
                "sha256": "3fc955d639437ab5a1b2e2fb45271c3b5613a191abe70bcab4b62093a2b89eec"
            },
            "downloads": -1,
            "filename": "nolds-0.5.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b6c8e7aaa94c9fd6d063aa2c57966a81",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 39140,
            "upload_time": "2019-06-16T11:47:43",
            "upload_time_iso_8601": "2019-06-16T11:47:43.420978Z",
            "url": "https://files.pythonhosted.org/packages/67/28/60d734bb74181f3a36d685c63b18481789fd54d6c25124662e7195e2d5ed/nolds-0.5.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-06-16 11:47:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CSchoel",
    "github_project": "nolds",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nolds"
}
        
Elapsed time: 0.14957s