Displaying 1 result from an estimated 1 matches for "setdist".
Did you mean:
setdst
2008 Feb 19
1
rJava and matrices
...rJava);
Loading required package: rJava
> t = rbind(c(1,2,3),c(2,3,4),c(1,2,10));
> .jinit()
> distanceMatrix = .jnew("data/structure/DistanceMatrix");
> .jmethods(distanceMatrix);
... other methods omitted for brevity ...
[4] "public void data.structure.DistanceMatrix.setDistances(double[][])"
> .jcall(distanceMatrix, "V", "setDistances", as.matrix(t));
Error in .jcall(distanceMatrix, "V", "setDistances", as.matrix(t)) :
method setDistances with signature ([D)V not found
Calls: .jcall -> .External
Execution halted...