<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The connection constructor</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.fannconnection.html">FANNConnection</a></div> <div class="next" style="text-align: right; float: right;"><a href="fannconnection.getfromneuron.html">FANNConnection::getFromNeuron</a></div> <div class="up"><a href="class.fannconnection.html">FANNConnection</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="fannconnection.construct" class="refentry"> <div class="refnamediv"> <h1 class="refname">FANNConnection::__construct</h1> <p class="verinfo">(PECL fann >= 1.0.0)</p><p class="refpurpose"><span class="refname">FANNConnection::__construct</span> — <span class="dc-title">The connection constructor</span></p> </div> <div class="refsect1 description" id="refsect1-fannconnection.construct-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>FANNConnection::__construct</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$from_neuron</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$to_neuron</code></span> , <span class="methodparam"><span class="type">float</span> <code class="parameter">$weight</code></span> )</div> <p class="para rdfs-comment"> Create new connection and initialize its params. After creating the connection, only weight can be changed. </p> </div> <div class="refsect1 parameters" id="refsect1-fannconnection.construct-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">from_neuron</code></dt> <dd> <p class="para"> The postion number of starting neuron. </p> </dd> <dt> <code class="parameter">to_neuron</code></dt> <dd> <p class="para"> The postion number of terminating neuron. </p> </dd> <dt> <code class="parameter">weight</code></dt> <dd> <p class="para"> The connection weight value. </p> </dd> </dl> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.fannconnection.html">FANNConnection</a></div> <div class="next" style="text-align: right; float: right;"><a href="fannconnection.getfromneuron.html">FANNConnection::getFromNeuron</a></div> <div class="up"><a href="class.fannconnection.html">FANNConnection</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>