/** * Set Values for training or using network * * Set Values of inputs and outputs for training or just inputs for using * already trained network. * * <code> * $objNetwork = new \ANN\Network(2, 4, 1); * * $objValues = new \ANN\Values; * * $objValues->train() * ->input(0.12, 0.11, 0.15) * ->output(0.56); * * $objNetwork->setValues($objValues); * </code> * * @param Values $objValues * @uses Values::getInputsArray() * @uses Values::getOutputsArray() * @uses setInputs() * @uses setOutputs() * @since 2.0.6 */ public function setValues(Values $objValues) { $this->setInputs($objValues->getInputsArray()); $this->setOutputs($objValues->getOutputsArray()); }