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

Let var, std & cor take a CovarianceEstimator #815

Merged
merged 5 commits into from Jul 15, 2022
Merged

Let var, std & cor take a CovarianceEstimator #815

merged 5 commits into from Jul 15, 2022

Conversation

tpgillam
Copy link
Contributor

Closes #734

Copy link
Member

@rofinn rofinn left a comment

Choose a reason for hiding this comment

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

Seems mostly fine. Conflict with Statistics.cov2cor! is probably worth considering though.

src/cov.jl Outdated Show resolved Hide resolved
@rofinn rofinn merged commit 77590ce into JuliaStats:master Jul 15, 2022
function cor(ce::CovarianceEstimator, X::AbstractMatrix; kwargs...)
return _cov2cor!(cov(ce, X; kwargs...))
end
function cor(ce::CovarianceEstimator, X::AbstractMatrix, w::AbstractWeights; kwargs...)
Copy link
Member

Choose a reason for hiding this comment

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

This method isn't tested at all. Could you make a PR to add a test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep - see #820

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.

Let var, std, cor take a CovarianceEstimator
3 participants