- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/dataprocessing/SynonymAttributePruning.java
r86 r135 59 59 double distance; 60 60 for (int j = traindata.numAttributes() - 1; j >= 0; j--) { 61 if ( j!=traindata.classIndex()) {61 if (j != traindata.classIndex()) { 62 62 boolean hasClosest = false; 63 63 for (int i1 = 0; !hasClosest && i1 < traindata.size(); i1++) { … … 67 67 double distanceJ = Double.MAX_VALUE; 68 68 for (int k = 0; k < traindata.numAttributes(); k++) { 69 distance = Math.abs(traindata.get(i1).value(k) - traindata.get(i2).value(k)); 69 distance = Math 70 .abs(traindata.get(i1).value(k) - traindata.get(i2).value(k)); 70 71 if (distance < minVal) { 71 72 minVal = distance;
Note: See TracChangeset
for help on using the changeset viewer.