kuramoto: simulate the kuramoto model

Description Usage Arguments Value

View source: R/kuramoto.R

Description

simulate the kuramoto model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
kuramoto(
  graph = NULL,
  adjMat,
  h = 0.01,
  phase = runif(N, 0, 2 * pi),
  natFreq = rnorm(N),
  thread = 3,
  steps = 1000,
  lambda = 0.1,
  weight = TRUE,
  N = vcount(graph)
)

Arguments

graph

the network structure, can be weighted

h

the stepsize for RK method

phase

the initial phase of the oscillators

natFreq

the nature frequency of those oscillators

thread

the multi threads number

steps

the number of steps of the simulation

lambda

the coupling strength between the oscillators

weight

a logical value, whether use edge weight or not

N

the size of the network

Value

a list with the order parameter and the phase


zlfccnu/econophysics documentation built on Feb. 23, 2022, 10:22 p.m.