Displaying 1 result from an estimated 1 matches for "runmeanonjavaarray".
2005 Jul 20
2
unable to call R t-test from Java
...l)
{
interp.show(value );
System.err.println("\r\n");
}
}
/**
* run the mean on a java array. Does it also return NAN?
* It returns a different value than the mean -- 2.19999... instead of 2.2
*/
static public void runMeanOnJavaArray(REvaluator e, ROmegahatInterpreter interp)
{
Object[] funArgs = new Object[1];
double[] d = { 1.1, 2.2, 3.3};
funArgs[0] = d;
System.err.println("\r\n Calling mean of (1.1, 2.2, 3.3) and passing a java array\r\n");
System.err.println("INTER...