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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file kuramoto_model-0.0.1.tar.gz.

File metadata

  • Download URL: kuramoto_model-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for kuramoto_model-0.0.1.tar.gz
Algorithm Hash digest
SHA256 97c82f8cdc396a6b613c3e45dc684f018126087841708d6187a0434b559d5b9b
MD5 3d956240bb84a5af7238e29479302399
BLAKE2b-256 ea2fe8358b64d71ab396579a67c2138409ac46f261f15c381f339f02e782cf6f

See more details on using hashes here.

File details

Details for the file kuramoto_model-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kuramoto_model-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for kuramoto_model-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0bc2d0a4687bc00af58723fb2de1371fcc35373409950f65f0e13b3beca72a2
MD5 db9b198140866e65bcd8f47ebc969bbe
BLAKE2b-256 6279e2ba2511fcbf33659e0d8010c83002009ca5c05fa70ca0141610a97004af

See more details on using hashes here.

Supported by

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