/** * @param integer $intKeyInput * @return array * @uses activate() * @uses Layer::getOutputs() * @uses Layer::getThresholdOutputs() * @uses setInputsToTrain() */ public function getOutputsByInputKey($intKeyInput) { $this->setInputsToTrain($this->arrInputs[$intKeyInput]); $this->activate(); switch ($this->intOutputType) { case self::OUTPUT_LINEAR: return $this->objOutputLayer->getOutputs(); case self::OUTPUT_BINARY: return $this->objOutputLayer->getThresholdOutputs(); } }