Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bencoscia/flm

Open more actions menu

Repository files navigation

flm

Travis Build Status Documentation Status codecov

Simulate fractional Levy motion

Check out the basic functionality with the following commands:

import flm

# Initialize fractional levy motion with trajectories of length 1000, hurst parameter = 0.4, alpha = 1.75
fractional_levy_motion = flm.FLM(1000, 0.4, 1.75)

# generate 10 independent trajectories
fractional_levy_motion.generate_realizations(10)

# plot the marginal distribution of hops
fractional_levy_motion.plot_marginal(show=False, bounds=(-5, 5))

# calculate and plot the autocorrelation function of the increments
fractional_levy_motion.plot_autocorrelation()

# plot the first 2 realizations
fractional_levy_motion.plot_trajectory([0, 1])

# calculate and plot the mean squared displacement of the trajectories
fractional_levy_motion.plot_msd(show=True)

Copyright

Copyright (c) 2020, Benjamin Coscia

Acknowledgements

Project based on the Computational Molecular Science Python Cookiecutter version 1.1.

About

Simulate fractional Levy motion

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.