public static double sigmoid(double x){
  return 1.0 / (1.0 + Math.pow(Math.E,-x));
}

public static double sigmoid ( double x ) { return 1.0 / ( 1.0 + Math . pow ( Math . E , - x ) ) ; }
1 / 1 + exp ( - x )
