php8.5
Home/ Manual/ fann / fannconnection/ FANNConnection::setWeight

FANNConnection::setWeight

PHP function Edit on GitHub ✎

(PECL fann >= 1.0.0)

Sets the connections weight

Description

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 Void

Source: reference/fann/fannconnection/setweight.xml · from the official PHP manual (php/doc-en)