Closed junajo10 closed 7 years ago
I have tried to get double[][] and so i can use Apache Commons Math
DataFrame
RealMatrix mx = MatrixUtils.createRealMatrix(new double[][]{ {1, 2, 3}, {2, 4, 6} }); RealMatrix cov = new Covariance(mx).getCovarianceMatrix();
I added a cov
method which wraps up the process of converting the data to double[]
, calculating the covariance with commons math, and returning the results as a data frame. Upgrade to the 1.8 release to use it.
Could you show me a way to calculate the covariance of this Dataframe? 0 1 0_left 29789,00000000 29657,00000000 0_right 39140,00000000 26047,00000000 0 1380349,00000000 698550,00000000
Rgds,
JJ