public double weightValue(int n){
  if (n >= m_numInputs || n < -1) {
    return Double.NaN;
  }
  return m_weights[n + 1];
}

public double weightValue ( int n ) { if ( n >= m_numInputs || n < - 1 ) { return Double . NaN ; } return m_weights [ n + 1 ] ; }
call this to get the weight value on a particular connection .
