if((System.currentTimeMillis()-time)>20l){ //frame limiter
panel = getBarChart(error,"MSE per Dimension for Origin: "+origin.getName());
frame.getContentPane().removeAll();
frame.getContentPane().add(panel, BorderLayout.CENTER);
frame.setTitle("Origin MSE Plot (Overall MSE=" + mseAvg + ")");
frame.validate();
time=System.currentTimeMillis();
}
if (i==1){
frame.pack();