Displaying 1 result from an estimated 1 matches for "upgma_matrix".
2011 Apr 05
0
kmeans clustering java
...System.out.println("Cannot load R");
return null;
}
re.eval ("rmatrix <- matrix(data = NA, nrow = "+rows+", ncol
="+(columns-1)+", byrow = FALSE)");//,dimnames = )");
REXP rp= re.eval(hDr);
//loop through the matrix and give the upgma_matrix the correct values
for (int i = 0; i < rows-1; i++)
{
re.eval ("i<- " +i);
for (int j = 1; j < columns; j++)
{
re.eval ("j<- " +j);
//R matrices start at index 1 (java at 0), so add 1 to current
position...