pyeeg.simulate.Phasor
- class pyeeg.simulate.Phasor(frequency=10.0, dt=0.001, seed=42)
One-dimensional phase oscillator with sinusoidal readout.
The phase \(\phi\) evolves according to \(\dot{\phi} = \omega + I\) where \(\omega = 2 \pi f\), and the readout is \(\sin(\phi)\).
- Parameters:
- Raises:
ValueError – If
frequencyis negative.
Methods
Return the scalar readout of the oscillator.
Phasor.simulate([x0, tmax, noise, I])Simulate the oscillator and return its phase and readout.
Phasor.step([I, noise])Advance the phase by one integration step (Euler method).