public double activation(double parameter) { return 1.0 / (1.0 + Math.Pow(Math.E, (-1.0 * parameter))); }