API Documentation#
API reference for the timescales module.
Table of Contents#
Model Objects#
Objects for computing timescales from PSD or ACF.
PSD#
The PSD object fits power spectra and extracts timescales.
|
Power spectral density class. |
ACF#
The ACF object fits autocorrelation functions and extracts timescales.
|
Autocorrelation function class. |
ARPSD#
The ARPSD object fits power spectra using the AR(p) form.
|
Fits AR(p) model to PSD. |
Autoregressive#
Spectral#
Autoregressive functions.
|
Compute an autoregressive power spectrum. |
|
|
|
Compute PSD from AR coefficients. |
Simulations#
LFPs#
Local field potentials as AR, branching, or Ornstein-Uhlenbeck processes.
|
Simulate a signal given AR coefficients, phi. |
|
Simulate spikes as an Ornstein-Uhlenbeck process. |
|
Simulate a branching Poisson process. |
Spikes#
Spike simulations use exponentially decaying probability kernels, convolved with a Poisson.
|
Simulate a spiking autocorrelation as a synaptic kernel. |
|
Simulate spiking probability. |
|
Simulate a poisson distribution. |
ACF#
|
Simulate an autocorrelation with an oscillitory component. |
|
Simulate an exponential decay. |
|
Simulate a damped cosine. |
PSD#
|
Simulate theoretical spectral form of an AR(p) model. |
|
Simulate a Lorentzian with a timescale. |
Conversions#
Conversion functions are usefull for convert PSD to/from ACF, and to convert knee frequencies to taus.
|
Convert a PSD to ACF. |
|
Convert ACF to PSD. |
|
|
|
|
|
|
|