We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a97d00 commit 76a5b64Copy full SHA for 76a5b64
test/cov.jl
@@ -290,6 +290,7 @@ end
290
291
x = rand(8)
292
y = rand(8)
293
+ wv = fweights(rand(8))
294
X = hcat(x, y)
295
296
for corrected ∈ (false, true)
@@ -298,6 +299,7 @@ end
298
299
@test cov(scc, x) ≈ cov(x; corrected=corrected)
300
@test cov(scc, x, y) ≈ cov(x, y; corrected=corrected)
301
@test cov(scc, X) ≈ cov(X; corrected=corrected)
302
+ @test cov(scc, X, wv) ≈ cov(X, wv; corrected=corrected)
303
304
@test var(scc, x) ≈ var(x; corrected=corrected)
305
@test std(scc, x) ≈ std(x; corrected=corrected)
@@ -307,6 +309,7 @@ end
307
309
# it into a correlation matrix.
308
310
@test cor(scc, x, y) ≈ cor(x, y)
311
@test cor(scc, X) ≈ cor(X)
312
+ @test cor(scc, X, wv) ≈ cor(X, wv)
313
end
314
315
end # @testset "StatsBase.Covariance"
0 commit comments