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,
- Number of neurons
n - Coupling constant
k - Timeseries
timeseries: the timepoints to log results at - Intrinsic Frequencies
omega_n: defaults to n random values from a normal distribution - Initial Phases
theta_n: defaults to n random values between 0 and 2pi - 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97c82f8cdc396a6b613c3e45dc684f018126087841708d6187a0434b559d5b9b
|
|
| MD5 |
3d956240bb84a5af7238e29479302399
|
|
| BLAKE2b-256 |
ea2fe8358b64d71ab396579a67c2138409ac46f261f15c381f339f02e782cf6f
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0bc2d0a4687bc00af58723fb2de1371fcc35373409950f65f0e13b3beca72a2
|
|
| MD5 |
db9b198140866e65bcd8f47ebc969bbe
|
|
| BLAKE2b-256 |
6279e2ba2511fcbf33659e0d8010c83002009ca5c05fa70ca0141610a97004af
|