src/Neuron.php
public function pulse()
    {
        $sum = 0;

        foreach ($this->dendrites as $dendrite) {
            $sum += $dendrite->neuron->axion * $dendrite->w;
        }

        $this->axion = self::sig($sum);
    }
public function pulse()
    {
        $sum = 0;

        foreach ($this->dendrites as $dendrite) {
            $sum += $dendrite->neuron->axion * $dendrite->w;
        }

        $this->axion = self::sig($sum);
    }
Pulse.