class FANNConnection (View source)

Class FANNConnection

Properties

float $weight
int $to_neuron
int $from_neuron

Methods

__construct(int $from_neuron, int $to_neuron, float $weight)

The connection constructor

int
getFromNeuron()

Returns the postions of starting neuron.

int
getToNeuron()

Returns the postions of terminating neuron

void
getWeight()

Returns the connection weight

bool
setWeight(float $weight)

Sets the connections weight

Details

__construct(int $from_neuron, int $to_neuron, float $weight)

The connection constructor

Parameters

int $from_neuron
int $to_neuron
float $weight

int getFromNeuron()

Returns the postions of starting neuron.

Return Value

int

The postions of starting neuron.

int getToNeuron()

Returns the postions of terminating neuron

Return Value

int

The postions of terminating neuron.

void getWeight()

Returns the connection weight

Return Value

void

The connection weight.

bool setWeight(float $weight)

Sets the connections weight

Parameters

float $weight

Return Value

bool