addPairing( ( int ) ( FACTOR * d.getValues()[ i ][ j ] ), i, map );
}
}
- System.out.println( toString() );
+ //System.out.println( toString() );
}
final public void initialize( final int size ) {
final SortedSet<Integer> x = m.get( key );
if ( DEBUG ) {
if ( x == null ) {
+ System.out.println();
+ System.out
+ .println( "________________________________________________________________________________________" );
System.out.println( toString() );
throw new IllegalArgumentException( "key " + key + " (->" + value + ") does not exist for row " + j );
}
if ( x.size() == 1 ) {
if ( DEBUG ) {
if ( !x.contains( value ) ) {
+ System.out.println();
+ System.out
+ .println( "________________________________________________________________________________________" );
+ System.out.println( toString() );
throw new IllegalArgumentException( "pairing " + key + "->" + value + " does not exist for row "
+ j );
}
@Override
final public String toString() {
- final DecimalFormat df = new DecimalFormat( "0.00" );
+ final DecimalFormat df = new DecimalFormat( "0.000000" );
final StringBuilder sb = new StringBuilder();
for( int j = 0; j < size(); ++j ) {
+ sb.append( j );
+ sb.append( ": " );
for( final Entry<Integer, SortedSet<Integer>> entry : getSentrySet( j ) ) {
final double key = entry.getKey();
final SortedSet<Integer> values = entry.getValue();