--
You received this message because you are subscribed to a topic in the Google Groups "julia-stats" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/julia-stats/Qh_iZPO-dmI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to julia-stats...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-stats...@googlegroups.com.
x_sums = zeros(Float64, n_vars)cross_sums = zeros(Float64, n_vars, n_vars)
n = 0while more_rows()X = read_more_rows()
axpy!(1.0, sum(X, 1), x_sums)syrk!('L', 'T', 1.0, X, 1.0, cross_sums)n += size(X, 1)endm = x_sums / n # mean for each variableC = (cross_sums - n * (m*m')) / (n - 1)for j=1:n_vars, i=1:j C[i, j] = C[j, i] end