Type defining an activation function taking as a parameter the function to obtain the weighted sum of the inputs and the weights.
typedef ActivationFunction = double Function(double Function());