mercurial.core.hopf module

Hopf oscillator for amplitude dynamics and state transitions (Section 22).

class mercurial.core.hopf.HopfNetwork(n_oscillators: int, alphas: List[float] | None = None, omegas: List[float] | None = None, beta: float = 1.0, sigma: float = 0.05, kuramoto_coupling: float = 0.0, diffusive_coupling: float = 0.0)[source]

Bases: object

Network of Hopf oscillators with Kuramoto phase coupling and diffusive amplitude coupling.

Methods

get_mean_amplitude

get_order_parameter

step

get_mean_amplitude() float[source]
get_order_parameter() Tuple[float, float][source]
step(dt: float) None[source]
class mercurial.core.hopf.HopfOscillator(params: HopfParams | None = None, frequency_band: str = 'alpha', **kwargs)[source]

Bases: object

Single Hopf oscillator: dz/dt = (α + iω)z - β|z|²z + noise.

Methods

derivative

get_amplitude

get_phase

set_bifurcation

step

derivative(z: complex) complex[source]
get_amplitude() float[source]
get_phase() float[source]
set_bifurcation(alpha: float) None[source]
step(dt: float, external_input: complex = 0.0) None[source]