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

Implementation of covariance #36

Merged
merged 1 commit into from
Jul 5, 2015
Merged

Conversation

mdenker
Copy link
Member

@mdenker mdenker commented Jun 15, 2015

This is an implementation of the covariance() function. It is closely related to the corrcoef() function, and therefore overlapping code between correlation coefficient and covariance was moved to a new private function.

Resolved bug in non-working unit test where wrong variable was used.

Added squeeze statement to resulting CC/cov matrix to mimic numpy
behavior.

Small fixes

Merged main bodies of corrcoef and covariance in a single function,
since code overlaps almost completely.
@mdenker mdenker changed the title implementation of covariance. Implementation of covariance Jun 15, 2015
@@ -11,15 +11,80 @@
import numpy as np


def covariance(binned_sts, binary=False):
Copy link
Member

Choose a reason for hiding this comment

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

what is an sts? I think binned_spiketrains would be much clearer.

apdavison added a commit that referenced this pull request Jul 5, 2015
Implementation of covariance
@apdavison apdavison merged commit 9e7c2e2 into NeuralEnsemble:master Jul 5, 2015
@mdenker mdenker deleted the feature/cov branch January 27, 2016 08:37
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