PHP Class Phpml\NeuralNetwork\Node\Neuron\Synapse

Show file Open project: php-ai/php-ml Class Usage Examples

Protected Properties

Property Type Description
$node Phpml\NeuralNetwork\Node
$weight float

Public Methods

Method Description
__construct ( Phpml\NeuralNetwork\Node $node, float $weight = null )
changeWeight ( float $delta )
getNode ( ) : Phpml\NeuralNetwork\Node
getOutput ( ) : float
getWeight ( ) : float

Protected Methods

Method Description
generateRandomWeight ( ) : float

Method Details

__construct() public method

public __construct ( Phpml\NeuralNetwork\Node $node, float $weight = null )
$node Phpml\NeuralNetwork\Node
$weight float

changeWeight() public method

public changeWeight ( float $delta )
$delta float

generateRandomWeight() protected method

protected generateRandomWeight ( ) : float
return float

getNode() public method

public getNode ( ) : Phpml\NeuralNetwork\Node
return Phpml\NeuralNetwork\Node

getOutput() public method

public getOutput ( ) : float
return float

getWeight() public method

public getWeight ( ) : float
return float

Property Details

$node protected property

protected Node,Phpml\NeuralNetwork $node
return Phpml\NeuralNetwork\Node

$weight protected property

protected float $weight
return float