ActivationFunction constructor

const ActivationFunction(
  1. ActivationFunctionType type,
  2. double lowerLimit,
  3. double upperLimit, {
  4. required double func(
    1. double
    ),
  5. required double derivative(
    1. double
    ),
  6. Float32x4 funcSIMD(
    1. Float32x4
    )?,
  7. Float32x4 derivativeSIMD(
    1. Float32x4
    )?,
})

Implementation

const ActivationFunction(this.type, this.lowerLimit, this.upperLimit,
    {required this.func,
    required this.derivative,
    this.funcSIMD,
    this.derivativeSIMD});