mirror of
https://github.com/BlackLight/neuralpp.git
synced 2024-12-29 12:45:12 +01:00
578 lines
26 KiB
HTML
578 lines
26 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>Neural++: neuralpp::Neuron Class Reference</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.6 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="navpath"><a class="el" href="namespaceneuralpp.html">neuralpp</a>::<a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>neuralpp::Neuron Class Reference</h1><!-- doxytag: class="neuralpp::Neuron" -->Class for managing neurons.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="neural_09_09_8hpp-source.html">neural++.hpp</a>></code>
|
|
<p>
|
|
|
|
<p>
|
|
<a href="classneuralpp_1_1Neuron-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#c877424a295478e3464046ea43c2a7ad">Neuron</a> (double(*a)(double), double(*d)(double))</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#c877424a295478e3464046ea43c2a7ad"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#e25546d4f7126f106c2f3b2d8ed2c792">Neuron</a> (vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > <a class="el" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a>, vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > <a class="el" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a>, double(*a)(double), double(*d)(double))</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Alternative constructor, that gets also the synapsis linked to the neuron. <a href="#e25546d4f7126f106c2f3b2d8ed2c792"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#29f2d9dcc4ca34f224d4dc39bb2f180a">synIn</a> (size_t i)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the i-th synapsis connected on the input of the neuron. <a href="#29f2d9dcc4ca34f224d4dc39bb2f180a"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#655f1637e1b754461413ac7fc2ffeebe">synOut</a> (size_t i)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the i-th synapsis connected on the output of the neuron. <a href="#655f1637e1b754461413ac7fc2ffeebe"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#583ada6e1dd3f2e113415b4d89196e62">push_in</a> (<a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> &s)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">It pushes a new input synapsis. <a href="#583ada6e1dd3f2e113415b4d89196e62"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#bca65db84f56f9d40694bfbcd25812cb">push_out</a> (<a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> &s)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">It pushes a new output synapsis. <a href="#bca65db84f56f9d40694bfbcd25812cb"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#ddf00ffef030b27ed11901aad08822bd">setActv</a> (double a)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Change the activation value of the neuron. <a href="#ddf00ffef030b27ed11901aad08822bd"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#aa6e58f073a76b3481fea9115a4e6ea6">setProp</a> (double p)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Change the propagation value of the neuron. <a href="#aa6e58f073a76b3481fea9115a4e6ea6"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#55993867179f0ac7d1e0e2c460ceb611">getActv</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the activation value of the neuron. <a href="#55993867179f0ac7d1e0e2c460ceb611"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#57c022f82213f662e2a263fc134a3fc9">getProp</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the propagation value of the neuron. <a href="#57c022f82213f662e2a263fc134a3fc9"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#8b0ca61cd0e047c8691ab39aae56dbda">propagate</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">It propagates its activation value to the connected neurons. <a href="#8b0ca61cd0e047c8691ab39aae56dbda"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#ad97f1a082d5f969eb4c69ab454ecfbb">nIn</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of input synapsis for the neuron. <a href="#ad97f1a082d5f969eb4c69ab454ecfbb"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#fe458021e3b20d58dc608fb94ae2135b">nOut</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of output synapsis for the neuron. <a href="#fe458021e3b20d58dc608fb94ae2135b"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#2e2ccb69277fc3d992a3a3f2360ed154">synClear</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Remove input and output synapsis from a neuron. <a href="#2e2ccb69277fc3d992a3a3f2360ed154"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#eec680c47272b2465e8d8a998c359853">actv_val</a></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#da75259de98b1a893c736666af6bfdc3">prop_val</a></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a></td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(* </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#198ddd0d11a26d0052d52b787d6a0df0">actv_f</a> )(double)</td></tr>
|
|
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(* </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#8b881889e40e9782c49b0efad2b1dde3">deriv</a> )(double)</td></tr>
|
|
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
Class for managing neurons.
|
|
<p>
|
|
Don't use this class directly unless you know what you're doing, use <a class="el" href="classneuralpp_1_1NeuralNet.html" title="Main project's class.">NeuralNet</a> instead <hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="c877424a295478e3464046ea43c2a7ad"></a><!-- doxytag: member="neuralpp::Neuron::Neuron" ref="c877424a295478e3464046ea43c2a7ad" args="(double(*a)(double), double(*d)(double))" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">neuralpp::Neuron::Neuron </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double(*)(double) </td>
|
|
<td class="paramname"> <em>a</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double(*)(double) </td>
|
|
<td class="paramname"> <em>d</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Constructor.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>a</em> </td><td>Activation function </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td>Its derivate </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="e25546d4f7126f106c2f3b2d8ed2c792"></a><!-- doxytag: member="neuralpp::Neuron::Neuron" ref="e25546d4f7126f106c2f3b2d8ed2c792" args="(vector< Synapsis > in, vector< Synapsis > out, double(*a)(double), double(*d)(double))" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">neuralpp::Neuron::Neuron </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > </td>
|
|
<td class="paramname"> <em>in</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > </td>
|
|
<td class="paramname"> <em>out</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double(*)(double) </td>
|
|
<td class="paramname"> <em>a</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double(*)(double) </td>
|
|
<td class="paramname"> <em>d</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Alternative constructor, that gets also the synapsis linked to the neuron.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>in</em> </td><td>Input synapses </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>out</em> </td><td>Output synapses </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>a</em> </td><td>Activation function </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td>Derivate of the activation function </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="29f2d9dcc4ca34f224d4dc39bb2f180a"></a><!-- doxytag: member="neuralpp::Neuron::synIn" ref="29f2d9dcc4ca34f224d4dc39bb2f180a" args="(size_t i)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a>& neuralpp::Neuron::synIn </td>
|
|
<td>(</td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"> <em>i</em> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Get the i-th synapsis connected on the input of the neuron.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>i</em> </td><td>Index of the input synapsis to get </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to the i-th synapsis </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="655f1637e1b754461413ac7fc2ffeebe"></a><!-- doxytag: member="neuralpp::Neuron::synOut" ref="655f1637e1b754461413ac7fc2ffeebe" args="(size_t i)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a>& neuralpp::Neuron::synOut </td>
|
|
<td>(</td>
|
|
<td class="paramtype">size_t </td>
|
|
<td class="paramname"> <em>i</em> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Get the i-th synapsis connected on the output of the neuron.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>i</em> </td><td>Index of the output synapsis to get </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to the i-th synapsis </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="583ada6e1dd3f2e113415b4d89196e62"></a><!-- doxytag: member="neuralpp::Neuron::push_in" ref="583ada6e1dd3f2e113415b4d89196e62" args="(Synapsis &s)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void neuralpp::Neuron::push_in </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> & </td>
|
|
<td class="paramname"> <em>s</em> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
It pushes a new input synapsis.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>s</em> </td><td><a class="el" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a> to be pushed </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="bca65db84f56f9d40694bfbcd25812cb"></a><!-- doxytag: member="neuralpp::Neuron::push_out" ref="bca65db84f56f9d40694bfbcd25812cb" args="(Synapsis &s)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void neuralpp::Neuron::push_out </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> & </td>
|
|
<td class="paramname"> <em>s</em> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
It pushes a new output synapsis.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>s</em> </td><td><a class="el" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a> to be pushed </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="ddf00ffef030b27ed11901aad08822bd"></a><!-- doxytag: member="neuralpp::Neuron::setActv" ref="ddf00ffef030b27ed11901aad08822bd" args="(double a)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void neuralpp::Neuron::setActv </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>a</em> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Change the activation value of the neuron.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>a</em> </td><td>Activation value </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="aa6e58f073a76b3481fea9115a4e6ea6"></a><!-- doxytag: member="neuralpp::Neuron::setProp" ref="aa6e58f073a76b3481fea9115a4e6ea6" args="(double p)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void neuralpp::Neuron::setProp </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"> <em>p</em> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Change the propagation value of the neuron.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>Propagation value </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="55993867179f0ac7d1e0e2c460ceb611"></a><!-- doxytag: member="neuralpp::Neuron::getActv" ref="55993867179f0ac7d1e0e2c460ceb611" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double neuralpp::Neuron::getActv </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Get the activation value of the neuron.
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Activation value for the neuron </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="57c022f82213f662e2a263fc134a3fc9"></a><!-- doxytag: member="neuralpp::Neuron::getProp" ref="57c022f82213f662e2a263fc134a3fc9" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double neuralpp::Neuron::getProp </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Get the propagation value of the neuron.
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Propagation value for the neuron </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="8b0ca61cd0e047c8691ab39aae56dbda"></a><!-- doxytag: member="neuralpp::Neuron::propagate" ref="8b0ca61cd0e047c8691ab39aae56dbda" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double neuralpp::Neuron::propagate </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
It propagates its activation value to the connected neurons.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="ad97f1a082d5f969eb4c69ab454ecfbb"></a><!-- doxytag: member="neuralpp::Neuron::nIn" ref="ad97f1a082d5f969eb4c69ab454ecfbb" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t neuralpp::Neuron::nIn </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Get the number of input synapsis for the neuron.
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of input synapsis </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="fe458021e3b20d58dc608fb94ae2135b"></a><!-- doxytag: member="neuralpp::Neuron::nOut" ref="fe458021e3b20d58dc608fb94ae2135b" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t neuralpp::Neuron::nOut </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Get the number of output synapsis for the neuron.
|
|
<p>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of output synapsis </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="2e2ccb69277fc3d992a3a3f2360ed154"></a><!-- doxytag: member="neuralpp::Neuron::synClear" ref="2e2ccb69277fc3d992a3a3f2360ed154" args="()" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void neuralpp::Neuron::synClear </td>
|
|
<td>(</td>
|
|
<td class="paramname"> </td>
|
|
<td> ) </td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Remove input and output synapsis from a neuron.
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Data Documentation</h2>
|
|
<a class="anchor" name="eec680c47272b2465e8d8a998c359853"></a><!-- doxytag: member="neuralpp::Neuron::actv_val" ref="eec680c47272b2465e8d8a998c359853" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double <a class="el" href="classneuralpp_1_1Neuron.html#eec680c47272b2465e8d8a998c359853">neuralpp::Neuron::actv_val</a><code> [private]</code> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="da75259de98b1a893c736666af6bfdc3"></a><!-- doxytag: member="neuralpp::Neuron::prop_val" ref="da75259de98b1a893c736666af6bfdc3" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double <a class="el" href="classneuralpp_1_1Neuron.html#da75259de98b1a893c736666af6bfdc3">neuralpp::Neuron::prop_val</a><code> [private]</code> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="ead827210fa18c2baae03927b2c798ff"></a><!-- doxytag: member="neuralpp::Neuron::in" ref="ead827210fa18c2baae03927b2c798ff" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > <a class="el" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">neuralpp::Neuron::in</a><code> [private]</code> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="82a4297f84d6403e52a8386d26117b4f"></a><!-- doxytag: member="neuralpp::Neuron::out" ref="82a4297f84d6403e52a8386d26117b4f" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">vector< <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> > <a class="el" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">neuralpp::Neuron::out</a><code> [private]</code> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="198ddd0d11a26d0052d52b787d6a0df0"></a><!-- doxytag: member="neuralpp::Neuron::actv_f" ref="198ddd0d11a26d0052d52b787d6a0df0" args=")(double)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double(* <a class="el" href="classneuralpp_1_1Neuron.html#198ddd0d11a26d0052d52b787d6a0df0">neuralpp::Neuron::actv_f</a>)(double)<code> [private]</code> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="8b881889e40e9782c49b0efad2b1dde3"></a><!-- doxytag: member="neuralpp::Neuron::deriv" ref="8b881889e40e9782c49b0efad2b1dde3" args=")(double)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">double(* <a class="el" href="classneuralpp_1_1Neuron.html#8b881889e40e9782c49b0efad2b1dde3">neuralpp::Neuron::deriv</a>)(double)<code> [private]</code> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="neural_09_09_8hpp-source.html">neural++.hpp</a></ul>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
|
</body>
|
|
</html>
|