Ejemplo n.º 1
0
# Note: the :func:`sim_powerlaw` function can simulate arbitrary power law exponents,
# such as pink noise (-1), or any other exponent.
#

###################################################################################################
#
# Random Walk Activity
# --------------------
#
# We can also simulate an Ornstein-Uhlenbeck process, which is a random walk process with memory.
#

###################################################################################################

# Simulate aperiodic signals from a random walk process
rw_noise = sim.sim_random_walk(n_seconds, fs)

###################################################################################################

# Plot the simulated data, in the time domain
plot_time_series(times, rw_noise, title='RW Process')

###################################################################################################
#
# Simulate Synaptic Activity
# --------------------------
#
# Another model for simulating aperiodic, neurally plausible activity, is to simulate
# synaptic current activity, as a Lorentzian function.
#
# The synaptic current moedel is poisson activity convolved with exponential kernels
Ejemplo n.º 2
0
# power law exponents, such as pink noise (-1), or any other exponent.
#

###################################################################################################
# Random Walk Activity
# --------------------
#
# We can also simulate an Ornstein-Uhlenbeck process, which is a random walk process with memory.
#
# We can do this with the :func:`~.sim_random_walk` function.
#

###################################################################################################

# Simulate aperiodic signals from a random walk process
rw_ap = sim_random_walk(n_seconds, fs)

###################################################################################################

# Plot the simulated data, in the time domain
plot_time_series(times, rw_ap, title='Random Walk')

###################################################################################################
# Simulate Synaptic Activity
# --------------------------
#
# Another model for simulating aperiodic, neurally plausible activity, is to simulate
# synaptic current activity, as a Lorentzian function.
#
# This is available with the :func:`~.sim_synaptic_current` function.
#