Changeset 29 for trunk/CrossPare/src/de/ugoe/cs
- Timestamp:
- 03/14/15 10:59:16 (10 years ago)
- Location:
- trunk/CrossPare/src/de/ugoe/cs/cpdp
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/loader/CSVMockusDataLoader.java
r28 r29 28 28 29 29 String[] lineSplit = lines[0].split(","); 30 for (int j = 0; j < lineSplit.length - 5; j++) {31 atts.add(new Attribute(lineSplit[j + 4]));30 for (int j = 0; j < lineSplit.length - 3; j++) { 31 atts.add(new Attribute(lineSplit[j + 2])); 32 32 } 33 33 … … 44 44 for (int i = 1; i < lines.length; i++) { 45 45 lineSplit = lines[i].split(","); 46 double[] values = new double[lineSplit.length - 4];46 double[] values = new double[lineSplit.length - 2]; 47 47 for (int j = 0; j < values.length - 1; j++) { 48 values[j] = Double.parseDouble(lineSplit[j + 4].trim());48 values[j] = Double.parseDouble(lineSplit[j + 2].trim()); 49 49 } 50 50 values[values.length - 1] = lineSplit[lineSplit.length - 1].trim()
Note: See TracChangeset
for help on using the changeset viewer.