private void extractWeightValues(List<Synapse> synapses){
  int exWeights=0;
  int inWeights=0;
  for (  Synapse s : synapses) {
    double w=s.getStrength();
    if (w > 0) {
      exWeights++;
    }
 else {
      inWeights++;
    }
  }
  weights[0]=new double[exWeights];
  weights[1]=new double[inWeights];
  exWeights=0;
  inWeights=0;
  if (weights[0].length != 0) {
    for (    Synapse s : synapses) {
      double w=s.getStrength();
      if (w > 0) {
        weights[0][exWeights++]=w;
      }
 else {
        weights[1][inWeights++]=w;
      }
    }
  }
}

private void extractWeightValues ( List < Synapse > synapses ) { int exWeights = 0 ; int inWeights = 0 ; for ( Synapse s : synapses ) { double w = s . getStrength ( ) ; if ( w > 0 ) { exWeights ++ ; } else { inWeights ++ ; } } weights [ 0 ] = new double [ exWeights ] ; weights [ 1 ] = new double [ inWeights ] ; exWeights = 0 ; inWeights = 0 ; if ( weights [ 0 ] . length != 0 ) { for ( Synapse s : synapses ) { double w = s . getStrength ( ) ; if ( w > 0 ) { weights [ 0 ] [ exWeights ++ ] = w ; } else { weights [ 1 ] [ inWeights ++ ] = w ; } } } }
extracts weight values and organizes them by synapse type ( inhibitory or excitatory ) . inhibitory values are represented by their absolute value .
