src/Network.php
public function setInput(array $in)
    {
        if ($this->getInputLayer()->size !== count($in)) {
            throw new RuntimeException('Input array length must be the same as input length.');
        }

        for ($i = 0; $i < $this->structure[0]; $i++) {
            $this->getInputLayer()->neurons[$i]->axion = $in[$i];
        }
    }
public function setInput(array $in)
    {
        if ($this->getInputLayer()->size !== count($in)) {
            throw new RuntimeException('Input array length must be the same as input length.');
        }

        for ($i = 0; $i < $this->structure[0]; $i++) {
            $this->getInputLayer()->neurons[$i]->axion = $in[$i];
        }
    }
@param float[] $in

@throws RuntimeException