public double [ ] [ ] getDistanceMatrix ( ) { double [ ] [ ] matrix = new double [ distances . getSize ( ) ] [ distances . getSize ( ) ] ; for ( int i = 0 ; i < matrix . length ; i ++ ) { for ( int j = i + 1 ; j < matrix . length ; j ++ ) { matrix [ i ] [ j ] = matrix [ j ] [ i ] = distances . getValue ( i , j ) ; } } return matrix ; }
Returns the distance matrix used to construct this guide tree . The scores have been normalized .