cvexample

cvexample()

CVEXAMPLE Example driver demonstrating the cross-validated kernel smoother

Usage:

cvexample

Inputs:

none

Outputs:

none (side effects only — generates a demo figure)

Notes

Simulates a true firing rate as a scaled sinusoid, generates spikes from an inhomogeneous Poisson model, and calls cvkernel to recover the rate. Runs at two different ground-truth bandwidths for comparison. Implements the algorithm described in:

Prerau M.J., Eden U.T. “A General Likelihood Framework for Characterizing the Time Course of Neural Activity”, Journal of Neuroscience, 2011.

See also: cvkernel, kconv

∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿