addPairing( ( int ) ( FACTOR * d.getValues()[ i ][ j ] ), i, map );
}
}
- System.out.println( toString() );
+ //System.out.println( toString() );
}
final public void initialize( final int size ) {
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 );
- // }
- // }
- // m.remove( key );
- // }
- else if ( x.size() >= 1 ) {
+ 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 );
+ }
+ }
+ m.remove( key );
+ }
+ else if ( x.size() > 1 ) {
if ( DEBUG ) {
if ( !x.remove( value ) ) {
throw new IllegalArgumentException( "pairing " + key + "->" + value
@Override
final public String toString() {
- final DecimalFormat df = new DecimalFormat( "0.0000" );
+ final DecimalFormat df = new DecimalFormat( "0.000000" );
final StringBuilder sb = new StringBuilder();
for( int j = 0; j < size(); ++j ) {
sb.append( j );