getOutput() public method

public getOutput ( ) : float
return float
Example #1
0
 public function testSynapseInitialization()
 {
     $node = $this->getNodeMock($nodeOutput = 0.5);
     $synapse = new Synapse($node, $weight = 0.75);
     $this->assertEquals($node, $synapse->getNode());
     $this->assertEquals($weight, $synapse->getWeight());
     $this->assertEquals($weight * $nodeOutput, $synapse->getOutput());
     $synapse = new Synapse($node);
     $this->assertInternalType('float', $synapse->getWeight());
 }