public double calculateExcitatoryRatio(){
  excitatoryRatio=exSynapseSet.size() / (double)size();
  if (Double.isNaN(excitatoryRatio)) {
    return 0;
  }
  return excitatoryRatio;
}

public double calculateExcitatoryRatio ( ) { excitatoryRatio = exSynapseSet . size ( ) / ( double ) size ( ) ; if ( Double . isNaN ( excitatoryRatio ) ) { return 0 ; } return excitatoryRatio ; }
if a randomize operation changes the ratio of excitatory to inhibitory synapses , this method can be called to change the excitatoryratio to reflect this value . this happens rarely , and generally speaking is not recommended outside prototyping .
