private double g(final double x){
  return 2 / Math.PI * Math.atan((Math.PI * lambda * x) / 2);
}

private double g ( final double x ) { return 2 / Math . PI * Math . atan ( ( Math . PI * lambda * x ) / 2 ) ; }
implements a hopfield type sigmoidal function .
