Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of map edges #9

Open
tristanstoeber opened this issue Apr 4, 2019 · 1 comment
Open

Handling of map edges #9

tristanstoeber opened this issue Apr 4, 2019 · 1 comment

Comments

@tristanstoeber
Copy link
Contributor

Hey,
upon testing the behavior of the smooth_map function on nan values, i realized that the edges of the smoothed array drop in value. Is this how it should be?

Selection_042

@lepmik
Copy link
Member

lepmik commented Apr 5, 2019

This is expected behavior as the map is zero padded before convolving. This is why we smooth the spike map and occupancy map separately and calculate the rate map as rate_map = smooth(spike_map) / smooth(occupancy_map), then the edge errors should be minimal. We don't have much testing and docs on this method, so if you'd like you can see if making two maps, say one with 1's, and one with 2's smooth separately and divide, then you should see similar values inside the matrix as on the edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants