public void importData(final File theFile){
  try {
    CSVParser theParser=new CSVParser(new FileInputStream(theFile),"","","#");
    String[][] values=theParser.getAllValues();
    String[] line;
    double[] vector;
    int dimension=values[0].length;
    init(dimension);
    for (int i=0; i < values.length; i++) {
      line=values[i];
      vector=new double[values[0].length];
      for (int j=0; j < line.length; j++) {
        vector[j]=Double.parseDouble(line[j]);
      }
      addDatapoint(new DataPointColored(vector));
    }
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
  projectionMethod.init();
  projectionMethod.project();
  fireProjectorDataChanged();
}

public void importData ( final File theFile ) { try { CSVParser theParser = new CSVParser ( new FileInputStream ( theFile ) , "" , "" , "#" ) ; String [ ] [ ] values = theParser . getAllValues ( ) ; String [ ] line ; double [ ] vector ; int dimension = values [ 0 ] . length ; init ( dimension ) ; for ( int i = 0 ; i < values . length ; i ++ ) { line = values [ i ] ; vector = new double [ values [ 0 ] . length ] ; for ( int j = 0 ; j < line . length ; j ++ ) { vector [ j ] = Double . parseDouble ( line [ j ] ) ; } addDatapoint ( new DataPointColored ( vector ) ) ; } } catch ( IOException e ) { throw new RuntimeException ( e ) ; } projectionMethod . init ( ) ; projectionMethod . project ( ) ; fireProjectorDataChanged ( ) ; }
add new high - d datapoints and reinitialize the datasets .
