eduraga_feeler/feelerApp/loadFile.pde
public void loadFile(int n){   
    fileName = splitTokens(sessionFolders[n]);
  
    filenameString = sessionFolders[n];
    
    data = new FloatTable(userFolder + "/" + sessionFolders[n] + "/brain-activity.tsv");
    filenameCharArray = filenameString.toCharArray();
    
    rowCount = data.getRowCount(9);
    rowCount1 = data.getRowCount(1);
    rowCount2 = data.getRowCount(2);
    rowCount3 = data.getRowCount(3);
    columnCount = data.getColumnCount();
  
    state1start = data.getStateStart(1);
    state2start = data.getStateStart(2);
    state3start = data.getStateStart(3);

    if(data.data != null){
      for (int j = 0; j < data.data.length; j++) {
        if (data.data[j][12] == 1 || data.data[j][12] == 2) {
          attentionAverage += data.data[j][10];
          relaxationAverage += data.data[j][11];
        }
      }
      
      attentionAverage /= data.data.length;
      relaxationAverage /= data.data.length;
    }
    
    attentionAverageList[n] = attentionAverage;
    relaxationAverageList[n] = relaxationAverage;
    
    if(currentPage == "eegActivity"){
      eegAct.setup("values");
    }
}