public double sigmod_d(double x) { return Math.exp(x) / ((Math.exp(x) + 1) * (Math.exp(x) + 1)); }
public double sigmod(double x) { return 1.0 / (1 + Math.exp(-x)); }