Matlab implementation of a source extraction and spike inference algorithm for large scale calcium imaging data analysis, based on a constrained matrix factorization approach.

@gittangjun It’s required to make the math work when transitioning from continuous to discrete time representation. Check this page for some additional info (the part where I say: c[n]*(r<sub>1</sub> - r<sub>2</sub>) = h(nΔt) for n = 0,1,2,… )