Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

InforPerSpike.m 311 B

12345678910111213141516171819
  1. function spikeinfo = InforPerSpike( map )
  2. % Skaggs 1993; Ji 2007
  3. occp = map.time/sum(map.time); % occupancy probability
  4. if isfield(map, 'z')
  5. fi = map.z;
  6. else
  7. fi = map.rate;
  8. end
  9. f = sum(occp.*fi);
  10. fif = fi./f;
  11. ok = fif > 0;
  12. occp = occp(ok);
  13. fif = fif(ok);
  14. spikeinfo = sum(occp.*fif.*log2(fif));
  15. end