I am calling (Version 0.5.0 (2016-09-19 18:14 UTC) Official http://julialang.org/ releasex86_64-w64-mingw32)
cov according to the documentation: What wrong ? Set D is clear …
julia> cov(D,vardim=1, corrected=false )
WARNING: cov(X::AbstractMatrix; vardim=1,corrected=true,mean=Base.mean(X,vardim)) is deprecated, use Base.covm(X,mean,va
rdim,corrected) instead.
in depwarn(::String, ::Symbol) at .\deprecated.jl:64
in #cov#978(::Int64, ::Bool, ::Array{Float64,2}, ::Function, ::Array{Float64,2}) at .\deprecated.jl:50
in (::Base.#kw##cov)(::Array{Any,1}, ::Base.#cov, ::Array{Float64,2}) at .<missing>:0
in eval(::Module, ::Any) at .\boot.jl:234
in eval_user_input(::Any, ::Base.REPL.REPLBackend) at .\REPL.jl:64
in macro expansion at .\REPL.jl:95 [inlined]
in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at .\event.jl:68
while loading no file, in expression starting on line 0
4×4 Array{Float64,2}:
417.622 28.4 -0.346275 8.51173
28.4 268.643 -3.79816 -1.80744
-0.346275 -3.79816 80.4539 53.7528
8.51173 -1.80744 53.7528 643.906
julia> cor(D)
4×4 Array{Float64,2}:
1.0 0.0847888 -0.00188911 0.016414
0.0847888 1.0 -0.0258352 -0.00434574
-0.00188911 -0.0258352 1.0 0.236165
0.016414 -0.00434574 0.236165 1.0
julia> eltype(D)
Float64
julia> typeof(D)
Array{Float64,2}
julia> std(D,1)
1×4 Array{Float64,2}:
20.4393 16.3932 8.97116 25.3797
julia> sum(D[:,:].==0,1)
1×4 Array{Int64,2}:
2605 2647 2840 2370
Paul