FANNConnection
PHP Manual

FANNConnection::setWeight

(PECL fann >= 1.0.0)

FANNConnection::setWeightSets the connections weight

Descripción

public bool FANNConnection::setWeight ( float $weight )

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().

Parámetros

weight

The connection weight.

Valores devueltos

Devuelve TRUE en caso de éxito, o FALSE de lo contrario.


FANNConnection
PHP Manual