Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<FANNConnection::getWeightIgbinary>
^FANNConnectionLast updated: Mon, 26 Oct 2026

FANNConnection::setWeight

(PECL fann >= 1.0.0)

FANNConnection::setWeight — Sets the connections weight

Description

public function FANNConnection::setWeight(float $weight): void

Sets the connection weight.

This method is different than fann_set_weight(). It does not update the weight value in the network. The network value is updated only after calling fann_set_weight_array().

Parameters

weight

The connection weight.

Return Values

No value is returned.


<FANNConnection::getWeightIgbinary>
^FANNConnectionLast updated: Mon, 26 Oct 2026