Generate the contrast vector for testing the null hypothesis of interest. See Section 2 of Chen et al. (2021+) for details.

construct_v(n, thj, window_size, gam)

Arguments

n

length of the vector

thj

location of the estimated spike of interest

window_size

parameter h

gam

AR-1 decaying parameter

Value

Returns a vector of length n

References

Chen YT, Jewell SW, Witten DM. (2021) Quantifying uncertainty in spikes estimated from calcium imaging data. arXiv:2103.0781 [statME].

Examples

nu_vector <- construct_v(n = 100, thj = 2, window_size = 2, gam = 0.95)