- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/wekaclassifier/WHICH.java
r127 r135 268 268 score = 0; 269 269 } 270 if ( score==0) {270 if (score == 0) { 271 271 score = 0.000000001; // to disallow 0 total score 272 272 } … … 296 296 else { 297 297 String range = ranges.get(k); 298 if ( "'All'".equals(range)) {298 if ("'All'".equals(range)) { 299 299 result = true; 300 } else { 300 } 301 else { 301 302 double instanceValue = instance.value(attrIndex); 302 303 double lowerBound; … … 327 328 else { 328 329 // first value is positive 329 if( splitResult[0].substring(2, splitResult[0].length()).equals("ll'")) { 330 if (splitResult[0].substring(2, splitResult[0].length()) 331 .equals("ll'")) 332 { 330 333 System.out.println("foo"); 331 334 } 332 lowerBound = Double 333 . parseDouble(splitResult[0].substring(2, splitResult[0].length()));335 lowerBound = Double.parseDouble(splitResult[0] 336 .substring(2, splitResult[0].length())); 334 337 if (splitResult[1].startsWith("inf")) { 335 338 upperBound = Double.POSITIVE_INFINITY; … … 346 349 boolean upperBoundMatch = (range.charAt(range.length() - 2) == ')' && 347 350 instanceValue < upperBound) || 348 (range.charAt(range.length() - 2) == ']' && instanceValue <= upperBound); 351 (range.charAt(range.length() - 2) == ']' && 352 instanceValue <= upperBound); 349 353 result = lowerBoundMatch && upperBoundMatch; 350 354 }
Note: See TracChangeset
for help on using the changeset viewer.