% Compute the uncorrected variance coefficient of a spike train p % by taking the integral of the autocorrelation function % over a window of radius tau and correcting. % Multiply this number by tau to get the variance of the % spike count over an interval of size tau. % v=var_coeff(p,tau,dt) function v=var_coeff(p,tau,dt) % The variance coefficient is just the % cov coefficient of p with itself. v=cov_coeff(p,p,tau,dt);