Open GoogleCodeExporter opened 8 years ago
in version 2.2.0 the test
double[][] data = new double[1000][10];
for (int i=0;i<data.length;i++){
for (int j=0;j<data[0].length;j++){
data[i][j] = Math.random();
}
}
RCaller caller = new RCaller();
Globals.detect_current_rscript();
caller.setRscriptExecutable(Globals.Rscript_current);
RCode code = new RCode();
code.addDoubleMatrix("x", data);
code.addRCode("s <- dim(t(x) %*% x)");
caller.setRCode(code);
caller.runAndReturnResult("s");
double[] result = caller.getParser().getAsDoubleArray("s");
Assert.assertEquals(result[0], 10.0, delta);
Assert.assertEquals(result[1], 10.0, delta);
passes. Please try out the new version and tell me if any differences
Original comment by mhsatman
on 12 Apr 2014 at 9:17
Original issue reported on code.google.com by
ajrulez....@gmail.com
on 13 Dec 2013 at 11:17