replay_trajectory_classification.likelihoods.calcium_likelihood#

Calculate a Gamma likelihood for calcium imaging activity traces.

References

[1] Farhoodi, S., Plitt, M.H., Giocomo, L., and Eden, U.T. (2020). Estimating Fluctuations in Neural Representations of Uncertain Environments. 20. .

Functions

combined_likelihood

Combines the likelihoods of all the cells.

estimate_calcium_likelihood

Find the likelihood given a fitted place field model.

estimate_calcium_place_fields

Gives the conditional intensity of the neurons' spiking with respect to position.

gamma_log_likelihood

Probability of parameters given spiking at a particular time.

get_activity_rate

Predicts the calcium activity trace given fitted model coefficents.

make_spline_design_matrix

Creates a design matrix for regression with a position spline basis.

make_spline_predict_matrix

Make a design matrix for position bins