sigmoid function

double sigmoid(
  1. double x
)

Implementation

double sigmoid(double x) => 1 / (1 + exp(-x));