Skip to main content

A python implementation of the Kuramoto model

Project description

Kuramoto Model

A python implementation of the kuramoto model.

Installation

pip install kuramoto_model

Usage

Import the model,

from kuramoto_model.kuramoto_model import Kuramoto

Initialise the model with the following,

  1. Number of neurons n
  2. Coupling constant k
  3. Timeseries timeseries: the timepoints to log results at
  4. Intrinsic Frequencies omega_n: defaults to n random values from a normal distribution
  5. Initial Phases theta_n: defaults to n random values between 0 and 2pi
  6. Adjacency Matrix adjacency_nxn: defaults to all to all coupling (without self-coupling)
n = 100
k = 0.8
ts = np.linspace(0, 100, 1000)
model = Kuramoto(n, k, ts)

Find the phase, coherence and mean frequency timeseries,

phases = model.phase_timeseries()
coherences = model.coherence_timeseries()
mean_freq = model.mean_frequency_timeseries()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kuramoto_model-0.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

kuramoto_model-0.0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page