mirror of
https://github.com/BlackLight/neuralpp.git
synced 2024-12-29 12:45:12 +01:00
561 lines
25 KiB
HTML
561 lines
25 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::Synapsis 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_1Synapsis.html">Synapsis</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="contents">
|
||
|
<h1>neuralpp::Synapsis Class Reference</h1><!-- doxytag: class="neuralpp::Synapsis" -->Class for managing synapsis.
|
||
|
<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_1Synapsis-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_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8">Synapsis</a> (<a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> *i, <a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> *o, double w, double d)</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#0729de9e737b9967421edcfc4b410bd8"></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_1Synapsis.html#a75e0de57380141973c46dd83d9985e2">Synapsis</a> (<a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> *i, <a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> *o, double(*a)(double), double(*d)(double))</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a75e0de57380141973c46dd83d9985e2"></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_1Synapsis.html#3b9714684c845beae5b3474428509663">Synapsis</a> (<a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> *i, <a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> *o, double w, double(*a)(double), double(*d)(double))</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#3b9714684c845beae5b3474428509663"></a><br></td></tr>
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#5ba8a93a5741f4855390eb8a46e99435">getIn</a> ()</td></tr>
|
||
|
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#61c9a04e03291a01f44520cef143cbdd">getOut</a> ()</td></tr>
|
||
|
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff">setWeight</a> (double w)</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the weight of the synapsis. <a href="#acee77d0fdf9889464ab5ed27beae0ff"></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_1Synapsis.html#429ad5b25930faf436a9d725582802e1">setDelta</a> (double d)</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">It sets the delta (how much to change the weight after an update) of the synapsis. <a href="#429ad5b25930faf436a9d725582802e1"></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_1Synapsis.html#aa79c16ec6b59949e5d2f75a3f10d530">getWeight</a> ()</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the weight of the synapsis. <a href="#aa79c16ec6b59949e5d2f75a3f10d530"></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_1Synapsis.html#18f15b920609be8b818d43a0227aada5">getDelta</a> ()</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the delta of the synapsis. <a href="#18f15b920609be8b818d43a0227aada5"></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_1Synapsis.html#2fe3e9ec97542f1476d8b9306aa09756">getPrevDelta</a> ()</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the delta of the synapsis at the previous iteration. <a href="#2fe3e9ec97542f1476d8b9306aa09756"></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_1Synapsis.html#ecdb17182de791f7fdd417232e184350">momentum</a> (int N, int x)</td></tr>
|
||
|
|
||
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the inertial momentum of a synapsis. <a href="#ecdb17182de791f7fdd417232e184350"></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_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">delta</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_1Synapsis.html#65471cd6c9ef87609dfa4b0e5fafa708">prev_delta</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_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">weight</a></td></tr>
|
||
|
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#83d41c158054b08bd05051736e89a0ad">in</a></td></tr>
|
||
|
|
||
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#fb219e05038fa0da20db1082ab0500be">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_1Synapsis.html#2539b9eef2ff0f3522aea8d89e394f02">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_1Synapsis.html#2940b370c283aa1b63890666942c26bf">deriv</a> )(double)</td></tr>
|
||
|
|
||
|
</table>
|
||
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
||
|
Class for managing synapsis.
|
||
|
<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="0729de9e737b9967421edcfc4b410bd8"></a><!-- doxytag: member="neuralpp::Synapsis::Synapsis" ref="0729de9e737b9967421edcfc4b410bd8" args="(Neuron *i, Neuron *o, double w, double d)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">neuralpp::Synapsis::Synapsis </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td>
|
||
|
<td class="paramname"> <em>i</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td>
|
||
|
<td class="paramname"> <em>o</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">double </td>
|
||
|
<td class="paramname"> <em>w</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">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>i</em> </td><td>Input neuron </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>o</em> </td><td>Output neuron </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>Weight for the synapsis </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td>Delta for the synapsis </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="a75e0de57380141973c46dd83d9985e2"></a><!-- doxytag: member="neuralpp::Synapsis::Synapsis" ref="a75e0de57380141973c46dd83d9985e2" args="(Neuron *i, Neuron *o, double(*a)(double), double(*d)(double))" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">neuralpp::Synapsis::Synapsis </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td>
|
||
|
<td class="paramname"> <em>i</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td>
|
||
|
<td class="paramname"> <em>o</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>
|
||
|
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>i</em> </td><td>Input neuron </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>o</em> </td><td>Output neuron </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 for activation function </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="3b9714684c845beae5b3474428509663"></a><!-- doxytag: member="neuralpp::Synapsis::Synapsis" ref="3b9714684c845beae5b3474428509663" args="(Neuron *i, Neuron *o, double w, double(*a)(double), double(*d)(double))" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">neuralpp::Synapsis::Synapsis </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td>
|
||
|
<td class="paramname"> <em>i</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> * </td>
|
||
|
<td class="paramname"> <em>o</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">double </td>
|
||
|
<td class="paramname"> <em>w</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>
|
||
|
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>i</em> </td><td>Input neuron </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>o</em> </td><td>Output neuron </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>Weight for the synapsis (default: random) </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 for activation function </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<hr><h2>Member Function Documentation</h2>
|
||
|
<a class="anchor" name="5ba8a93a5741f4855390eb8a46e99435"></a><!-- doxytag: member="neuralpp::Synapsis::getIn" ref="5ba8a93a5741f4855390eb8a46e99435" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a>* neuralpp::Synapsis::getIn </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to input neuron of the synapsis </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="61c9a04e03291a01f44520cef143cbdd"></a><!-- doxytag: member="neuralpp::Synapsis::getOut" ref="61c9a04e03291a01f44520cef143cbdd" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a>* neuralpp::Synapsis::getOut </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Reference to output neuron of the synapsis </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="acee77d0fdf9889464ab5ed27beae0ff"></a><!-- doxytag: member="neuralpp::Synapsis::setWeight" ref="acee77d0fdf9889464ab5ed27beae0ff" args="(double w)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void neuralpp::Synapsis::setWeight </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">double </td>
|
||
|
<td class="paramname"> <em>w</em> </td>
|
||
|
<td> ) </td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Set the weight of the 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>w</em> </td><td>Weight to be set </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="429ad5b25930faf436a9d725582802e1"></a><!-- doxytag: member="neuralpp::Synapsis::setDelta" ref="429ad5b25930faf436a9d725582802e1" args="(double d)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void neuralpp::Synapsis::setDelta </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">double </td>
|
||
|
<td class="paramname"> <em>d</em> </td>
|
||
|
<td> ) </td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
It sets the delta (how much to change the weight after an update) of the 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>d</em> </td><td>Delta to be set </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="aa79c16ec6b59949e5d2f75a3f10d530"></a><!-- doxytag: member="neuralpp::Synapsis::getWeight" ref="aa79c16ec6b59949e5d2f75a3f10d530" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double neuralpp::Synapsis::getWeight </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Return the weight of the synapsis.
|
||
|
<p>
|
||
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Weight of the synapsis </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="18f15b920609be8b818d43a0227aada5"></a><!-- doxytag: member="neuralpp::Synapsis::getDelta" ref="18f15b920609be8b818d43a0227aada5" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double neuralpp::Synapsis::getDelta </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Return the delta of the synapsis.
|
||
|
<p>
|
||
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Delta of the synapsis </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="2fe3e9ec97542f1476d8b9306aa09756"></a><!-- doxytag: member="neuralpp::Synapsis::getPrevDelta" ref="2fe3e9ec97542f1476d8b9306aa09756" args="()" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double neuralpp::Synapsis::getPrevDelta </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"> </td>
|
||
|
<td> ) </td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Get the delta of the synapsis at the previous iteration.
|
||
|
<p>
|
||
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The previous delta </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="ecdb17182de791f7fdd417232e184350"></a><!-- doxytag: member="neuralpp::Synapsis::momentum" ref="ecdb17182de791f7fdd417232e184350" args="(int N, int x)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double neuralpp::Synapsis::momentum </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">int </td>
|
||
|
<td class="paramname"> <em>N</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">int </td>
|
||
|
<td class="paramname"> <em>x</em></td><td> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
Get the inertial momentum of a synapsis.
|
||
|
<p>
|
||
|
This value is inversely proportional to the number of steps done in the learning phase (quite high at the beginning, decreasing to zero towards the end of the learning algorithm), and is needed to avoid strong oscillations in output values at the beginning, caused by the random values assigned to the synaptical weights <dl compact><dt><b>Parameters:</b></dt><dd>
|
||
|
<table border="0" cellspacing="2" cellpadding="0">
|
||
|
<tr><td valign="top"></td><td valign="top"><em>N</em> </td><td>The number of iterations the network must have to adjust the output values </td></tr>
|
||
|
<tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>The number of iterations already taken </td></tr>
|
||
|
</table>
|
||
|
</dl>
|
||
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The inertial momentum of the synapsis </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<hr><h2>Member Data Documentation</h2>
|
||
|
<a class="anchor" name="617fdc4305f8f1850eac267a7ee22660"></a><!-- doxytag: member="neuralpp::Synapsis::delta" ref="617fdc4305f8f1850eac267a7ee22660" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double <a class="el" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">neuralpp::Synapsis::delta</a><code> [private]</code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="65471cd6c9ef87609dfa4b0e5fafa708"></a><!-- doxytag: member="neuralpp::Synapsis::prev_delta" ref="65471cd6c9ef87609dfa4b0e5fafa708" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double <a class="el" href="classneuralpp_1_1Synapsis.html#65471cd6c9ef87609dfa4b0e5fafa708">neuralpp::Synapsis::prev_delta</a><code> [private]</code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="0bc523a8135ebbb5c0da932939d30ed7"></a><!-- doxytag: member="neuralpp::Synapsis::weight" ref="0bc523a8135ebbb5c0da932939d30ed7" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double <a class="el" href="classneuralpp_1_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">neuralpp::Synapsis::weight</a><code> [private]</code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="83d41c158054b08bd05051736e89a0ad"></a><!-- doxytag: member="neuralpp::Synapsis::in" ref="83d41c158054b08bd05051736e89a0ad" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a>* <a class="el" href="classneuralpp_1_1Synapsis.html#83d41c158054b08bd05051736e89a0ad">neuralpp::Synapsis::in</a><code> [private]</code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="fb219e05038fa0da20db1082ab0500be"></a><!-- doxytag: member="neuralpp::Synapsis::out" ref="fb219e05038fa0da20db1082ab0500be" args="" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a>* <a class="el" href="classneuralpp_1_1Synapsis.html#fb219e05038fa0da20db1082ab0500be">neuralpp::Synapsis::out</a><code> [private]</code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="2539b9eef2ff0f3522aea8d89e394f02"></a><!-- doxytag: member="neuralpp::Synapsis::actv_f" ref="2539b9eef2ff0f3522aea8d89e394f02" args=")(double)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double(* <a class="el" href="classneuralpp_1_1Synapsis.html#2539b9eef2ff0f3522aea8d89e394f02">neuralpp::Synapsis::actv_f</a>)(double)<code> [private]</code> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="memdoc">
|
||
|
|
||
|
<p>
|
||
|
|
||
|
</div>
|
||
|
</div><p>
|
||
|
<a class="anchor" name="2940b370c283aa1b63890666942c26bf"></a><!-- doxytag: member="neuralpp::Synapsis::deriv" ref="2940b370c283aa1b63890666942c26bf" args=")(double)" -->
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double(* <a class="el" href="classneuralpp_1_1Synapsis.html#2940b370c283aa1b63890666942c26bf">neuralpp::Synapsis::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>
|