replay_trajectory_classification.likelihoods.spiking_likelihood_glm#

Estimates a Poisson likelihood using place fields estimated with a GLM with a spline basis

Functions

combined_likelihood

Combines the likelihoods of all the cells.

estimate_place_fields

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

estimate_spiking_likelihood

get_firing_rate

Predicts the firing rate 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

poisson_log_likelihood

Probability of parameters given spiking at a particular time.