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

Faster way of counting spikes #172

Merged
merged 1 commit into from
May 31, 2020

Conversation

dimokaramanlis
Copy link
Contributor

No description provided.

@marius10p
Copy link
Contributor

Thanks, give me a few days until I can test it.

@alexmorley
Copy link

LGTM. The following runs fine:

Nk = 10;
st3 = randsample(1:Nk, 1000, true);

nspk_1 = accumarray(st3(:), 1, [Nk, 1], @sum);


nspk_2 = zeros(Nk, 1);
for j = 1:Nk
    nspk_2(j) = sum(st3==j); % determine total number of spikes in each neuron
end

assert(all(nspk_1 == nspk_2))

@marius10p marius10p merged commit 1450e72 into MouseLand:master May 31, 2020
cnuahs pushed a commit to cnuahs/Kilosort that referenced this pull request Mar 9, 2024
Faster way of counting spikes

Former-commit-id: 1450e72
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

Successfully merging this pull request may close these issues.

None yet

3 participants