private void updateStats(){
  statCalculator.calcStats();
  meanLabel.setText("Mean: " + SimbrainMath.roundDouble(statCalculator.getMean(),5));
  medianLabel.setText("Median: " + SimbrainMath.roundDouble(statCalculator.getMedian(),5));
  sdLabel.setText("Std. Dev: " + SimbrainMath.roundDouble(statCalculator.getStdDev(),5));
  int tot=weights[0].length + weights[1].length;
  numSynsLabel.setText("Synapses: " + Integer.toString(tot));
  numExSynsLabel.setText("Excitatory : " + Integer.toString(weights[0].length));
  numInSynsLabel.setText("Inhibitory: " + Integer.toString(weights[1].length));
  statsPanel.revalidate();
  statsPanel.repaint();
}

private void updateStats ( ) { statCalculator . calcStats ( ) ; meanLabel . setText ( "Mean: " + SimbrainMath . roundDouble ( statCalculator . getMean ( ) , 5 ) ) ; medianLabel . setText ( "Median: " + SimbrainMath . roundDouble ( statCalculator . getMedian ( ) , 5 ) ) ; sdLabel . setText ( "Std. Dev: " + SimbrainMath . roundDouble ( statCalculator . getStdDev ( ) , 5 ) ) ; int tot = weights [ 0 ] . length + weights [ 1 ] . length ; numSynsLabel . setText ( "Synapses: " + Integer . toString ( tot ) ) ; numExSynsLabel . setText ( "Excitatory : " + Integer . toString ( weights [ 0 ] . length ) ) ; numInSynsLabel . setText ( "Inhibitory: " + Integer . toString ( weights [ 1 ] . length ) ) ; statsPanel . revalidate ( ) ; statsPanel . repaint ( ) ; }
updates the values in the stats panel ( number of synapses , excitatory synapses , inhibitory synapses , and mean , median and standard deviation of selected synapses . extract data should be used prior to this .
