You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This ugly hack is necessary to make the method below considered more specific than the deprecated method. When the old keyword version has been completely deprecated, these two methods can be merged
488
487
489
488
"""
490
-
cor(X[, vardim=1])
489
+
cor(X::AbstractMatrix[, vardim::Int=1])
491
490
492
491
Compute the Pearson correlation matrix of the matrix `X` along the dimension `vardim`.
# This ugly hack is necessary to make the method below considered more specific than the deprecated method. When the old keyword version has been completely deprecated, these two methods can be merged
Compute the Pearson correlation between the vectors `x` and `y`.
502
499
"""
503
500
cor(x::AbstractVector, y::AbstractVector) =corm(x, Base.mean(x), y, Base.mean(y))
504
-
# This ugly hack is necessary to make the method below considered more specific than the deprecated method. When the old keyword version has been completely deprecated, these two methods can be merged
corm(x, _vmean(x, vardim), y, _vmean(y, vardim), vardim)
513
-
# This ugly hack is necessary to make the method below considered more specific than the deprecated method. When the old keyword version has been completely deprecated, these methods can be merged
514
-
cor(x::AbstractVector, Y::AbstractMatrix) =cor(x, Y, 1)
515
-
cor(X::AbstractMatrix, y::AbstractVector) =cor(X, y, 1)
516
-
cor(X::AbstractMatrix, Y::AbstractMatrix) =cor(X, Y, 1)
0 commit comments