Code Monkey home page Code Monkey logo

combmodel's Introduction

version license downloads Documentation Status

comb-model: A package to simulate Fractional Brownian walks on a comb-like structure.

This package simulate trajectories of the comb model via Langevin equations driven by fractional Gaussian noises (long-range correlated).

If you have used comb-model in a scientific publication, we would appreciate citations to the following reference [1]:

https://raw.githubusercontent.com/lgaalves/combmodel/main/figures/featured.png

For more detailed information about the methods functions in comb-model, please consult its documentation.

Installation

The comb-model package is available on pypi and can be installed using pip

pip install comb-model

Dependencies

  • numpy
  • stochastic
  • tdqm

Processes

This package offers functions to simulate Fractional Brownian walks on a plane or Comb-like structures via via Langevin equations.

# Fractional Brownian walks on a plane

import matplotlib.pyplot as plt
from combmodel import langevin_fbn

x,y=langevin_fbn(x0=0,y0=0,betax=1,betay=1,hurstx=0.5,hursty=0.5,tmax=1000,disable_tqdm=True)


f, ax = plt.subplots(nrows=1, ncols=1, figsize=(9.1,7))
ax.plot(x,y,color='#D62728',markersize=0,linewidth=2)
ax.set_xlabel(r'Position, $x(t)$')
ax.set_ylabel(r'Position, $y(t)$')
https://raw.githubusercontent.com/lgaalves/combmodel/main/figures/fbm.png
# Fractional Brownian walks on a Comb-like structure

import matplotlib.pyplot as plt
from combmodel import comb_model

x, y = comb_model(x0=0,y0=0,betax=1,betay=1,hurstx=0.5,hursty=0.5,tmax=5000,eps=1,disable_tqdm=True)

f, ax = plt.subplots(nrows=1, ncols=1, figsize=(9.1,7))
ax.plot(x,y,color='#D62728',markersize=0,linewidth=2)
ax.set_xlabel(r'Position, $x(t)$')
ax.set_ylabel(r'Position, $y(t)$')
https://raw.githubusercontent.com/lgaalves/combmodel/main/figures/comb.png

References

[1]Haroldo V. Ribeiro, Angel A. Tateishi, Luiz G. A. Alves, Rafael S. Zola, Ervin K Lenzi (2014). Investigating the interplay between mechanisms of anomalous diffusion via fractional Brownian walks on a comb-like structure. New Journal of Physics 16, 093050

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.