chongxi / spiketag

Next generation of spike sorting package for BMI
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Check the equation for the Bayesian reconstruction of the animal position #66

Closed chongxi closed 4 years ago

chongxi commented 4 years ago

From zhang et al., 1998: Interpreting neuronal population activity by reconstruction: Unified framework with application to hippocampal place cells image

In Spiketag, the C in the above equation is not explicitly calculated in spikega.analysis.core.bayesian_decoding. When it comes to analysis, one when using the posterior would have to normalize it for rigour. Such normalizing is easy in python.

P /= P.sum()
chongxi commented 4 years ago

It is not necessary to normalize it if the purpose is to find out the argmax rather than the max of P(x).