Changeset 29 for trunk/CrossPare


Ignore:
Timestamp:
03/14/15 10:59:16 (10 years ago)
Author:
atrautsch
Message:

em cluster project context selection

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  
    2828 
    2929                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])); 
    3232                } 
    3333                 
     
    4444                for (int i = 1; i < lines.length; i++) { 
    4545                        lineSplit = lines[i].split(","); 
    46                         double[] values = new double[lineSplit.length - 4]; 
     46                        double[] values = new double[lineSplit.length - 2]; 
    4747                        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()); 
    4949                        } 
    5050                        values[values.length - 1] = lineSplit[lineSplit.length - 1].trim() 
Note: See TracChangeset for help on using the changeset viewer.