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

complexity_pdf and unit_test #34

Merged
merged 2 commits into from
Jul 9, 2015

Conversation

pietroquaglio
Copy link
Contributor

This pull request adds to the statistics module the complexity_pdf() function, in which is computed the density function of the number of active neurons per bin, fixed a certain binsize. The relative unit_test is added to the tests.

pophist.magnitude, bins=range(0, len(spiketrains)+2))[0]

# Normalization of the Complexity Histogram to 1 (probabilty distribution)
sum_complexity = float(sum(complexity_hist))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor issue, but complexity_hist.sum() is likely to be faster. In addition, float should not be necessary provided we have from __future__ import division at the top of the file.

@pietroquaglio
Copy link
Contributor Author

This commit includes the @apdavison comments

apdavison added a commit that referenced this pull request Jul 9, 2015
@apdavison apdavison merged commit e6c00e0 into NeuralEnsemble:master Jul 9, 2015
@pietroquaglio pietroquaglio deleted the feature/complexity branch March 1, 2016 13:00
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