/**
* @return float
*/
public function getOutput() : float
{
if (0 === $this->output) {
$sum = 0;
foreach ($this->synapses as $synapse) {
$sum += $synapse->getOutput();
}
$this->output = $this->activationFunction->compute($sum);
}
return $this->output;
}