Changeset 135 for trunk/CrossPare/src/de/ugoe/cs/cpdp/dataselection/AbstractCharacteristicSelection.java
- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/dataselection/AbstractCharacteristicSelection.java
r86 r135 104 104 } 105 105 else if ("median".equals(characteristics[j])) { 106 instanceValues[i * characteristics.length + j] = Utils.kthSmallestValue(testdata.attributeToDoubleArray(i), testdata.size()/2); 106 instanceValues[i * characteristics.length + j] = 107 Utils.kthSmallestValue(testdata.attributeToDoubleArray(i), 108 testdata.size() / 2); 107 109 } 108 110 else { … … 138 140 } 139 141 else if ("median".equals(characteristics[j])) { 140 instanceValues[i * characteristics.length + j] = Utils.kthSmallestValue(traindata.attributeToDoubleArray(i), traindata.size()/2); 142 instanceValues[i * characteristics.length + j] = 143 Utils.kthSmallestValue(traindata.attributeToDoubleArray(i), 144 traindata.size() / 2); 141 145 } 142 146 else { … … 173 177 } 174 178 catch (Exception e) { 175 throw new RuntimeException( 176 "Unexpected exception during normalization of distributional characteristics.", 179 throw new RuntimeException("Unexpected exception during normalization of distributional characteristics.", 177 180 e); 178 181 }
Note: See TracChangeset
for help on using the changeset viewer.