Hey I can't believe it, I fixed it...

This commit is contained in:
blacklight 2009-08-15 02:59:09 +02:00
parent 37995f75c2
commit b62dfe3967
113 changed files with 673 additions and 776 deletions

View File

@ -1,3 +1,18 @@
--- Release 0.4 ---
2009-08-15 BlackLight <blacklight@autistici.org>
* Makefile: Now you compile Neural++ with -Wall -pedantic
-pedantic-errors -ansi. And you won't get a single error. I love writing
pedantic, pure ISO C++ code...
* all: Hey I can't believe it guys, I've fixed that horrible bug an
neural output won't diverge anymore ^^
Also removed the 'deriv' parameter, as function pointer. It was just
useless, as once you have an activation function, you can compute its
derivate in any points. But, of course, this makes old codes no more
compatible with this new version.
--- Release 0.3 ---
2009-08-09 BlackLight <blacklight@autistici.org>
@ -6,7 +21,7 @@
* neural++.hpp: Changed header name, added BETA0 macro
* synapsis.cpp: Added momentum() method to compute the inertial momentum
of a synapsis
* everything: Data type changed from float to double for everything,
* all: Data type changed from float to double for everything,
fixing neuralpp namespace, fixed indentation, fixed exception throwing,
fixed documentation

View File

@ -3,7 +3,7 @@ INCLUDEDIR=include
PREFIX=/usr
LIB=neural++
CC=g++
CFLAGS=-Wall -pedantic -pedantic-errors
CFLAGS=-Wall -pedantic -pedantic-errors -ansi
all:
${CC} -I${INCLUDEDIR} ${CFLAGS} -fPIC -g -c ${SRCDIR}/neuralnet.cpp

2
TODO
View File

@ -1,2 +1,2 @@
Restyling for templates (now compatible only with neural networks of floats).
Restyling for templates (now compatible only with neural networks operating on 'double' real numbers).

View File

@ -1 +1 @@
0.3
0.4

View File

@ -660,7 +660,7 @@
<a name="l00644"></a>00644
<a name="l00645"></a>00645 <span class="preprocessor">#endif // !defined(_MARKUP_H_INCLUDED_)</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -1031,7 +1031,7 @@
</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -44,7 +44,7 @@
<tr><td class="indexkey"><a class="el" href="structneuralpp_1_1synrecord.html">neuralpp::synrecord</a></td><td class="indexvalue"></td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -212,7 +212,7 @@
<tr class="memlist"><td><a class="el" href="classCMarkup.html#f3b30bc5314bbc8d157dca6d924f4852">x_WriteText</a>(const MCD_STR &amp;strDoc, FilePos &amp;file)</td><td><a class="el" href="classCMarkup.html">CMarkup</a></td><td><code> [protected, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classCMarkup.html#8aa2cd9b38b3e173d2149914c59eb2b7">~CMarkup</a>()</td><td><a class="el" href="classCMarkup.html">CMarkup</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -4478,7 +4478,7 @@
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -24,19 +24,18 @@
<div class="contents">
<h1>neuralpp::Layer Member List</h1>This is the complete list of members for <a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#824367da29f92253a027a7c5b4a4405e">actv_f</a></td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#a0207b14ba80aaf03502749ecb7d23fa">deriv</a></td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#855685c9da56b06b629e13a2f8c719ce">elements</a></td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#411a4dc8a1bb2fe44fe7a69fa50fd764">Layer</a>(size_t sz, double(*a)(double), double(*d)(double))</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#117d1c3b481641816e80ea36826d2107">Layer</a>(vector&lt; Neuron &gt; &amp;neurons, double(*a)(double), double(*d)(double))</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#fb08bddd85d36570dabfe915461f07c5">Layer</a>(size_t sz, double(*a)(double))</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#609ed16b8d79dc384b01ba7d16b72bd1">Layer</a>(vector&lt; Neuron &gt; &amp;neurons, double(*a)(double))</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#ac33444fde14633fa1ad4acb024ad150">link</a>(Layer &amp;l)</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#45ff7554830558155c6fbce3b6827122">operator[]</a>(size_t i)</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#fcfd306039dbaf91c9e2dcc8fc1f1ce1">propagate</a>()</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#98f79281b680b1d18fd91fa5794c0899">setActv</a>(vector&lt; double &gt; &amp;v)</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#dbad95f635343a2998794113d7762cf7">setProp</a>(vector&lt; double &gt; &amp;v)</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#c8d2f7513e5d40518f9dddfd1e3ddcc5">size</a>()</td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#7ca71ed62fbe9c1e9c0fb6a8dcaf76f0">size</a>() const </td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Layer.html#c023a15a16353d0b4f44060a159f550f">update_weights</a></td><td><a class="el" href="classneuralpp_1_1Layer.html">neuralpp::Layer</a></td><td><code> [private]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -34,13 +34,13 @@
<a href="classneuralpp_1_1Layer-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#411a4dc8a1bb2fe44fe7a69fa50fd764">Layer</a> (size_t sz, double(*a)(double), double(*d)(double))</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#fb08bddd85d36570dabfe915461f07c5">Layer</a> (size_t sz, double(*a)(double))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#411a4dc8a1bb2fe44fe7a69fa50fd764"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#117d1c3b481641816e80ea36826d2107">Layer</a> (vector&lt; <a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> &gt; &amp;neurons, double(*a)(double), double(*d)(double))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#fb08bddd85d36570dabfe915461f07c5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#609ed16b8d79dc384b01ba7d16b72bd1">Layer</a> (vector&lt; <a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> &gt; &amp;neurons, double(*a)(double))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Alternative constructor. <a href="#117d1c3b481641816e80ea36826d2107"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#45ff7554830558155c6fbce3b6827122">operator[]</a> (size_t i)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Alternative constructor. <a href="#609ed16b8d79dc384b01ba7d16b72bd1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#45ff7554830558155c6fbce3b6827122">operator[]</a> (size_t i) throw (NetworkIndexOutOfBoundsException)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redefinition for operator []. <a href="#45ff7554830558155c6fbce3b6827122"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#ac33444fde14633fa1ad4acb024ad150">link</a> (<a class="el" href="classneuralpp_1_1Layer.html">Layer</a> &amp;l)</td></tr>
@ -55,7 +55,7 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#fcfd306039dbaf91c9e2dcc8fc1f1ce1">propagate</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It propagates its activation values to the output layers. <a href="#fcfd306039dbaf91c9e2dcc8fc1f1ce1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#c8d2f7513e5d40518f9dddfd1e3ddcc5">size</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#7ca71ed62fbe9c1e9c0fb6a8dcaf76f0">size</a> () const </td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">vector&lt; <a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#855685c9da56b06b629e13a2f8c719ce">elements</a></td></tr>
@ -64,14 +64,12 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#824367da29f92253a027a7c5b4a4405e">actv_f</a> )(double)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Layer.html#a0207b14ba80aaf03502749ecb7d23fa">deriv</a> )(double)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class for managing layers of 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&#39;s class.">NeuralNet</a> instead <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="411a4dc8a1bb2fe44fe7a69fa50fd764"></a><!-- doxytag: member="neuralpp::Layer::Layer" ref="411a4dc8a1bb2fe44fe7a69fa50fd764" args="(size_t sz, double(*a)(double), double(*d)(double))" -->
<a class="anchor" name="fb08bddd85d36570dabfe915461f07c5"></a><!-- doxytag: member="neuralpp::Layer::Layer" ref="fb08bddd85d36570dabfe915461f07c5" args="(size_t sz, double(*a)(double))" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -85,13 +83,7 @@ Don't use this class directly unless you know what you're doing, use <a class="e
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>d</em></td><td>&nbsp;</td>
<td class="paramname"> <em>a</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
@ -109,13 +101,12 @@ Constructor.
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>sz</em>&nbsp;</td><td>Size of the layer </td></tr>
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>Activation function </td></tr>
<tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td>Its derivate </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="117d1c3b481641816e80ea36826d2107"></a><!-- doxytag: member="neuralpp::Layer::Layer" ref="117d1c3b481641816e80ea36826d2107" args="(vector&lt; Neuron &gt; &amp;neurons, double(*a)(double), double(*d)(double))" -->
<a class="anchor" name="609ed16b8d79dc384b01ba7d16b72bd1"></a><!-- doxytag: member="neuralpp::Layer::Layer" ref="609ed16b8d79dc384b01ba7d16b72bd1" args="(vector&lt; Neuron &gt; &amp;neurons, double(*a)(double))" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -129,13 +120,7 @@ Constructor.
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>d</em></td><td>&nbsp;</td>
<td class="paramname"> <em>a</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
@ -153,7 +138,6 @@ It directly gets a vector of neurons to build the layer <dl compact><dt><b>Param
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>neurons</em>&nbsp;</td><td>Vector of neurons to be included in the layer </td></tr>
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>Activation function </td></tr>
<tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td>Its derivate </td></tr>
</table>
</dl>
@ -170,7 +154,7 @@ It directly gets a vector of neurons to build the layer <dl compact><dt><b>Param
<td class="paramtype">size_t&nbsp;</td>
<td class="paramname"> <em>i</em> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td> throw (NetworkIndexOutOfBoundsException)</td>
</tr>
</table>
</div>
@ -290,7 +274,7 @@ It propagates its activation values to the output layers.
</div>
</div><p>
<a class="anchor" name="c8d2f7513e5d40518f9dddfd1e3ddcc5"></a><!-- doxytag: member="neuralpp::Layer::size" ref="c8d2f7513e5d40518f9dddfd1e3ddcc5" args="()" -->
<a class="anchor" name="7ca71ed62fbe9c1e9c0fb6a8dcaf76f0"></a><!-- doxytag: member="neuralpp::Layer::size" ref="7ca71ed62fbe9c1e9c0fb6a8dcaf76f0" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -299,7 +283,7 @@ It propagates its activation values to the output layers.
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td> const</td>
</tr>
</table>
</div>
@ -354,27 +338,12 @@ It propagates its activation values to the output layers.
<p>
</div>
</div><p>
<a class="anchor" name="a0207b14ba80aaf03502749ecb7d23fa"></a><!-- doxytag: member="neuralpp::Layer::deriv" ref="a0207b14ba80aaf03502749ecb7d23fa" args=")(double)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double(* <a class="el" href="classneuralpp_1_1Layer.html#a0207b14ba80aaf03502749ecb7d23fa">neuralpp::Layer::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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -26,38 +26,37 @@
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#c1469e6afd87d85b82f14bc246f82457">actv_f</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#28b9966c5f197b8e86d57dd104aa32a6">closeXML</a>(string &amp;xml)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#62695a82dfb1df758a44150921aec8e0">commitChanges</a>(Layer *l)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576">deriv</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#4cb52dae7b43d03fac73afca7b9f3a51">epochs</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#8a140d28e6dd4097470c7c138801ad01">error</a>(double ex)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#0616c51404efaca2714e37dd7478997e">error</a>(double ex) const </td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#423fd38a61d79905dcc12da84c805114">expected</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#562dfe9fb8d73bf25a23ce608451d3aa">expected</a>() const </td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f5ec2727c0756ddb097b53efe49b81afb">file</a> enum value</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#7de7ee318eeb791d21a01e9e9e0e8c5a">getOutput</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#961dce8913264bf64c899dce4e25f810">getOutput</a>() const </td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#a6b8bf3800b43b58843c65fc431207ae">getOutputs</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">hidden</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">hidden</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#45c7645d4affe65752d37cd230afba24">initXML</a>(string &amp;xml)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">input</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">input</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#6bd7be443e46b2fdbf1da2edb8e611ab">l_rate</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#46f23f462318a4ffc037a4e806364c3f">link</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2">NeuralNet</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#c79534c7c0dfb20d1d03be2ad7569b78">NeuralNet</a>(size_t in_size, size_t hidden_size, size_t out_size, double l, int e)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#88380cb002edcccf11b59f6d3f6c94c9">NeuralNet</a>(const char *file)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#b4b261f7f7fa93c45855288fd66cfdca">NeuralNet</a>(size_t in_size, size_t hidden_size, size_t out_size, double(*actv)(double), double(*deriv)(double), double l, int e)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">output</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#7fc7fc3e3220c138ffa5356fef6b9757">NeuralNet</a>(const string file)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#0c16df2e0701503052c63749930b238e">NeuralNet</a>(size_t in_size, size_t hidden_size, size_t out_size, double(*actv)(double), double l, int e)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">output</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#c129c180647362da963758bfd1ba6890">propagate</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#4f88106c9e542c39eac43b4ca1974a2a">ref_epochs</a></td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#5db8d6ba4785f732da6e642b4f8f11a0">save</a>(const char *fname)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#fdf94c276720c25e565cac834fe8a407">save</a>(const char *fname)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#b6475762b7e9eab086befdc511f7c236">setExpected</a>(double ex)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#0de170e8ab561ad63d0739b4c4b74f68">setInput</a>(vector&lt; double &gt; &amp;v)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f">source</a> enum name</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#e07af23ceb8666518da0c035bf1e0376">split</a>(char delim, string str)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">str</a> enum value</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#e8b8741d28bec1354db555eabe418cb6">train</a>(string xml, source xrc)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#ead4bdef0602a5cadbe3beb685e01f5f">train</a>(string xml, source src)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#b0bd1daadb06980dff1f50d33a7c098e">update</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#94169c89a7cd47122ab5dbf1d5c5e108">updateWeights</a>()</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1NeuralNet.html#4be31ecb0b543a192997bd83c6995ccb">XMLFromSet</a>(int id, string set)</td><td><a class="el" href="classneuralpp_1_1NeuralNet.html">neuralpp::NeuralNet</a></td><td><code> [static]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -46,21 +46,21 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#c79534c7c0dfb20d1d03be2ad7569b78">NeuralNet</a> (size_t in_size, size_t hidden_size, size_t out_size, double l, int e)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#c79534c7c0dfb20d1d03be2ad7569b78"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#88380cb002edcccf11b59f6d3f6c94c9">NeuralNet</a> (const char *file) throw (NetworkFileNotFoundException)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#7fc7fc3e3220c138ffa5356fef6b9757">NeuralNet</a> (const string file) throw (NetworkFileNotFoundException)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#88380cb002edcccf11b59f6d3f6c94c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#b4b261f7f7fa93c45855288fd66cfdca">NeuralNet</a> (size_t in_size, size_t hidden_size, size_t out_size, double(*actv)(double), double(*<a class="el" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576">deriv</a>)(double), double l, int e)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#7fc7fc3e3220c138ffa5356fef6b9757"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#0c16df2e0701503052c63749930b238e">NeuralNet</a> (size_t in_size, size_t hidden_size, size_t out_size, double(*actv)(double), double l, int e)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#b4b261f7f7fa93c45855288fd66cfdca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#7de7ee318eeb791d21a01e9e9e0e8c5a">getOutput</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#0c16df2e0701503052c63749930b238e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#961dce8913264bf64c899dce4e25f810">getOutput</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It gets the output of the network (note: the layer output should contain an only neuron). <a href="#7de7ee318eeb791d21a01e9e9e0e8c5a"></a><br></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It gets the output of the network (note: the layer output should contain an only neuron). <a href="#961dce8913264bf64c899dce4e25f810"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">vector&lt; double &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#a6b8bf3800b43b58843c65fc431207ae">getOutputs</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It gets the output of the network in case the output layer contains more neurons. <a href="#a6b8bf3800b43b58843c65fc431207ae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#423fd38a61d79905dcc12da84c805114">expected</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#562dfe9fb8d73bf25a23ce608451d3aa">expected</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It gets the value expected. <a href="#423fd38a61d79905dcc12da84c805114"></a><br></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It gets the value expected. <a href="#562dfe9fb8d73bf25a23ce608451d3aa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#b6475762b7e9eab086befdc511f7c236">setExpected</a> (double <a class="el" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It sets the value you expect from your network. <a href="#b6475762b7e9eab086befdc511f7c236"></a><br></td></tr>
@ -76,12 +76,12 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#46f23f462318a4ffc037a4e806364c3f">link</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It links the layers of the network (input, hidden, output). <a href="#46f23f462318a4ffc037a4e806364c3f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#5db8d6ba4785f732da6e642b4f8f11a0">save</a> (const char *fname)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#fdf94c276720c25e565cac834fe8a407">save</a> (const char *fname) throw (NetworkFileWriteException)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Save a trained neural network to a binary file. <a href="#5db8d6ba4785f732da6e642b4f8f11a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#e8b8741d28bec1354db555eabe418cb6">train</a> (string xml, <a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f">source</a> xrc) throw (InvalidXMLException)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Save a trained neural network to a binary file. <a href="#fdf94c276720c25e565cac834fe8a407"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#ead4bdef0602a5cadbe3beb685e01f5f">train</a> (string xml, <a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f">source</a> src) throw (InvalidXMLException)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Train a network using a training set loaded from an XML file. <a href="#e8b8741d28bec1354db555eabe418cb6"></a><br></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Train a network using a training set loaded from an XML file. <a href="#ead4bdef0602a5cadbe3beb685e01f5f"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#45c7645d4affe65752d37cd230afba24">initXML</a> (string &amp;xml)</td></tr>
@ -95,6 +95,13 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#28b9966c5f197b8e86d57dd104aa32a6">closeXML</a> (string &amp;xml)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Closes an open XML document generated by "initXML" and "XMLFromSet". <a href="#28b9966c5f197b8e86d57dd104aa32a6"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">input</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">hidden</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">output</a></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#94169c89a7cd47122ab5dbf1d5c5e108">updateWeights</a> ()</td></tr>
@ -102,9 +109,9 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#62695a82dfb1df758a44150921aec8e0">commitChanges</a> (<a class="el" href="classneuralpp_1_1Layer.html">Layer</a> *l)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It commits the changes made by <a class="el" href="classneuralpp_1_1NeuralNet.html#94169c89a7cd47122ab5dbf1d5c5e108" title="It updates the weights of the net&#39;s synapsis through back-propagation.">updateWeights()</a> to the layer l. <a href="#62695a82dfb1df758a44150921aec8e0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#8a140d28e6dd4097470c7c138801ad01">error</a> (double <a class="el" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#0616c51404efaca2714e37dd7478997e">error</a> (double <a class="el" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">It get the error made on the expected result as |v-v'|/v. <a href="#8a140d28e6dd4097470c7c138801ad01"></a><br></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the error made on the expected result as |v-v'|/v. <a href="#0616c51404efaca2714e37dd7478997e"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#4cb52dae7b43d03fac73afca7b9f3a51">epochs</a></td></tr>
@ -114,18 +121,9 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">input</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">hidden</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">output</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#c1469e6afd87d85b82f14bc246f82457">actv_f</a> )(double)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Private pointer to function, containing the function to be used as activation function. <a href="#c1469e6afd87d85b82f14bc246f82457"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576">deriv</a> )(double)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Private pointer to function, containing the function to be used as derivate of the activation function. <a href="#df44689f4e6201ca1ddc67655cce3576"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Main project's class.
@ -236,14 +234,14 @@ Constructor.
</div>
</div><p>
<a class="anchor" name="88380cb002edcccf11b59f6d3f6c94c9"></a><!-- doxytag: member="neuralpp::NeuralNet::NeuralNet" ref="88380cb002edcccf11b59f6d3f6c94c9" args="(const char *file)" -->
<a class="anchor" name="7fc7fc3e3220c138ffa5356fef6b9757"></a><!-- doxytag: member="neuralpp::NeuralNet::NeuralNet" ref="7fc7fc3e3220c138ffa5356fef6b9757" args="(const string file)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">neuralpp::NeuralNet::NeuralNet </td>
<td>(</td>
<td class="paramtype">const char *&nbsp;</td>
<td class="paramtype">const string&nbsp;</td>
<td class="paramname"> <em>file</em> </td>
<td>&nbsp;)&nbsp;</td>
<td> throw (NetworkFileNotFoundException)</td>
@ -257,7 +255,7 @@ 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>file</em>&nbsp;</td><td>Binary file containing a neural network previously saved by <a class="el" href="classneuralpp_1_1NeuralNet.html#5db8d6ba4785f732da6e642b4f8f11a0" title="Save a trained neural network to a binary file.">save()</a> method </td></tr>
<tr><td valign="top"></td><td valign="top"><em>file</em>&nbsp;</td><td>Binary file containing a neural network previously saved by <a class="el" href="classneuralpp_1_1NeuralNet.html#fdf94c276720c25e565cac834fe8a407" title="Save a trained neural network to a binary file.">save()</a> method </td></tr>
</table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
@ -268,7 +266,7 @@ Constructor.
</div>
</div><p>
<a class="anchor" name="b4b261f7f7fa93c45855288fd66cfdca"></a><!-- doxytag: member="neuralpp::NeuralNet::NeuralNet" ref="b4b261f7f7fa93c45855288fd66cfdca" args="(size_t in_size, size_t hidden_size, size_t out_size, double(*actv)(double), double(*deriv)(double), double l, int e)" -->
<a class="anchor" name="0c16df2e0701503052c63749930b238e"></a><!-- doxytag: member="neuralpp::NeuralNet::NeuralNet" ref="0c16df2e0701503052c63749930b238e" args="(size_t in_size, size_t hidden_size, size_t out_size, double(*actv)(double), double l, int e)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -296,12 +294,6 @@ Constructor.
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>actv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>deriv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
@ -332,7 +324,6 @@ Constructor.
<tr><td valign="top"></td><td valign="top"><em>hidden_size</em>&nbsp;</td><td>Size of the hidden layer </td></tr>
<tr><td valign="top"></td><td valign="top"><em>out_size</em>&nbsp;</td><td>Size of the output layer </td></tr>
<tr><td valign="top"></td><td valign="top"><em>actv</em>&nbsp;</td><td>Activation function to use (default: f(x)=x) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>deriv</em>&nbsp;</td><td>Derivate for the activation function to use (default: f'(x)=1) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>l</em>&nbsp;</td><td>learn rate (get it after doing some experiments, but generally try to keep its value quite low to be more accurate) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>e</em>&nbsp;</td><td>Epochs (cycles) to execute (the most you execute, the most the network can be accurate for its purpose) </td></tr>
</table>
@ -389,7 +380,7 @@ In-class use only <dl compact><dt><b>Parameters:</b></dt><dd>
</div>
</div><p>
<a class="anchor" name="8a140d28e6dd4097470c7c138801ad01"></a><!-- doxytag: member="neuralpp::NeuralNet::error" ref="8a140d28e6dd4097470c7c138801ad01" args="(double ex)" -->
<a class="anchor" name="0616c51404efaca2714e37dd7478997e"></a><!-- doxytag: member="neuralpp::NeuralNet::error" ref="0616c51404efaca2714e37dd7478997e" args="(double ex) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -399,14 +390,14 @@ In-class use only <dl compact><dt><b>Parameters:</b></dt><dd>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>ex</em> </td>
<td>&nbsp;)&nbsp;</td>
<td><code> [private]</code></td>
<td> const<code> [private]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
It get the error made on the expected result as |v-v'|/v.
Get the error made on the expected result as |v-v'|/v.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
@ -417,7 +408,7 @@ It get the error made on the expected result as |v-v'|/v.
</div>
</div><p>
<a class="anchor" name="7de7ee318eeb791d21a01e9e9e0e8c5a"></a><!-- doxytag: member="neuralpp::NeuralNet::getOutput" ref="7de7ee318eeb791d21a01e9e9e0e8c5a" args="()" -->
<a class="anchor" name="961dce8913264bf64c899dce4e25f810"></a><!-- doxytag: member="neuralpp::NeuralNet::getOutput" ref="961dce8913264bf64c899dce4e25f810" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -426,7 +417,7 @@ It get the error made on the expected result as |v-v'|/v.
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td> const</td>
</tr>
</table>
</div>
@ -461,7 +452,7 @@ It gets the output of the network in case the output layer contains more neurons
</div>
</div><p>
<a class="anchor" name="423fd38a61d79905dcc12da84c805114"></a><!-- doxytag: member="neuralpp::NeuralNet::expected" ref="423fd38a61d79905dcc12da84c805114" args="()" -->
<a class="anchor" name="562dfe9fb8d73bf25a23ce608451d3aa"></a><!-- doxytag: member="neuralpp::NeuralNet::expected" ref="562dfe9fb8d73bf25a23ce608451d3aa" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -470,7 +461,7 @@ It gets the output of the network in case the output layer contains more neurons
<td>(</td>
<td class="paramname"> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td> const</td>
</tr>
</table>
</div>
@ -600,17 +591,17 @@ It links the layers of the network (input, hidden, output).
Don't use unless you exactly know what you're doing, it is already called by the constructor
</div>
</div><p>
<a class="anchor" name="5db8d6ba4785f732da6e642b4f8f11a0"></a><!-- doxytag: member="neuralpp::NeuralNet::save" ref="5db8d6ba4785f732da6e642b4f8f11a0" args="(const char *fname)" -->
<a class="anchor" name="fdf94c276720c25e565cac834fe8a407"></a><!-- doxytag: member="neuralpp::NeuralNet::save" ref="fdf94c276720c25e565cac834fe8a407" args="(const char *fname)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool neuralpp::NeuralNet::save </td>
<td class="memname">void neuralpp::NeuralNet::save </td>
<td>(</td>
<td class="paramtype">const char *&nbsp;</td>
<td class="paramname"> <em>fname</em> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td> throw (NetworkFileWriteException)</td>
</tr>
</table>
</div>
@ -624,10 +615,15 @@ Save a trained neural network to a binary file.
<tr><td valign="top"></td><td valign="top"><em>fname</em>&nbsp;</td><td>Binary file where you're going to save your network </td></tr>
</table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>NetworkFileWriteException</em>&nbsp;</td><td>When you get an error writing the network's information to a file </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="e8b8741d28bec1354db555eabe418cb6"></a><!-- doxytag: member="neuralpp::NeuralNet::train" ref="e8b8741d28bec1354db555eabe418cb6" args="(string xml, source xrc)" -->
<a class="anchor" name="ead4bdef0602a5cadbe3beb685e01f5f"></a><!-- doxytag: member="neuralpp::NeuralNet::train" ref="ead4bdef0602a5cadbe3beb685e01f5f" args="(string xml, source src)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -641,7 +637,7 @@ Save a trained neural network to a binary file.
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f">source</a>&nbsp;</td>
<td class="paramname"> <em>xrc</em></td><td>&nbsp;</td>
<td class="paramname"> <em>src</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
@ -858,51 +854,6 @@ Closes an open XML document generated by "initXML" and "XMLFromSet".
<p>
</div>
</div><p>
<a class="anchor" name="e2b4e8405f9d25edab395d61502bdba9"></a><!-- doxytag: member="neuralpp::NeuralNet::input" ref="e2b4e8405f9d25edab395d61502bdba9" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a>* <a class="el" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">neuralpp::NeuralNet::input</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="bbdaa1b6c0a1a95d2b18cd25fda2a266"></a><!-- doxytag: member="neuralpp::NeuralNet::hidden" ref="bbdaa1b6c0a1a95d2b18cd25fda2a266" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a>* <a class="el" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">neuralpp::NeuralNet::hidden</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="fa9b2dbcbb39d0fc70f790ac24069a74"></a><!-- doxytag: member="neuralpp::NeuralNet::output" ref="fa9b2dbcbb39d0fc70f790ac24069a74" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a>* <a class="el" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">neuralpp::NeuralNet::output</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="c1469e6afd87d85b82f14bc246f82457"></a><!-- doxytag: member="neuralpp::NeuralNet::actv_f" ref="c1469e6afd87d85b82f14bc246f82457" args=")(double)" -->
@ -922,19 +873,47 @@ Private pointer to function, containing the function to be used as activation fu
</div>
</div><p>
<a class="anchor" name="df44689f4e6201ca1ddc67655cce3576"></a><!-- doxytag: member="neuralpp::NeuralNet::deriv" ref="df44689f4e6201ca1ddc67655cce3576" args=")(double)" -->
<a class="anchor" name="e2b4e8405f9d25edab395d61502bdba9"></a><!-- doxytag: member="neuralpp::NeuralNet::input" ref="e2b4e8405f9d25edab395d61502bdba9" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double(* <a class="el" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576">neuralpp::NeuralNet::deriv</a>)(double)<code> [private]</code> </td>
<td class="memname"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a>* <a class="el" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">neuralpp::NeuralNet::input</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Private pointer to function, containing the function to be used as derivate of the activation function.
</div>
</div><p>
<a class="anchor" name="bbdaa1b6c0a1a95d2b18cd25fda2a266"></a><!-- doxytag: member="neuralpp::NeuralNet::hidden" ref="bbdaa1b6c0a1a95d2b18cd25fda2a266" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a>* <a class="el" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">neuralpp::NeuralNet::hidden</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="fa9b2dbcbb39d0fc70f790ac24069a74"></a><!-- doxytag: member="neuralpp::NeuralNet::output" ref="fa9b2dbcbb39d0fc70f790ac24069a74" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classneuralpp_1_1Layer.html">Layer</a>* <a class="el" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">neuralpp::NeuralNet::output</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
@ -942,7 +921,7 @@ Private pointer to function, containing the function to be used as derivate of t
<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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -25,12 +25,11 @@
<h1>neuralpp::Neuron Member List</h1>This is the complete list of members for <a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#198ddd0d11a26d0052d52b787d6a0df0">actv_f</a></td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#eec680c47272b2465e8d8a998c359853">actv_val</a></td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#8b881889e40e9782c49b0efad2b1dde3">deriv</a></td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#55993867179f0ac7d1e0e2c460ceb611">getActv</a>()</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#57c022f82213f662e2a263fc134a3fc9">getProp</a>()</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a></td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#c877424a295478e3464046ea43c2a7ad">Neuron</a>(double(*a)(double), double(*d)(double))</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#e25546d4f7126f106c2f3b2d8ed2c792">Neuron</a>(vector&lt; Synapsis &gt; in, vector&lt; Synapsis &gt; out, double(*a)(double), double(*d)(double))</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#9863a08b73bc97c8b514aca6c580ff7b">Neuron</a>(double(*a)(double))</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#f1bf19ec93174f60b368ee4a91b03f46">Neuron</a>(vector&lt; Synapsis &gt; in, vector&lt; Synapsis &gt; out, double(*a)(double))</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#ad97f1a082d5f969eb4c69ab454ecfbb">nIn</a>()</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#fe458021e3b20d58dc608fb94ae2135b">nOut</a>()</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a></td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td><code> [private]</code></td></tr>
@ -44,7 +43,7 @@
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#29f2d9dcc4ca34f224d4dc39bb2f180a">synIn</a>(size_t i)</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Neuron.html#655f1637e1b754461413ac7fc2ffeebe">synOut</a>(size_t i)</td><td><a class="el" href="classneuralpp_1_1Neuron.html">neuralpp::Neuron</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -34,12 +34,12 @@
<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">&nbsp;</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="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#9863a08b73bc97c8b514aca6c580ff7b">Neuron</a> (double(*a)(double))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#c877424a295478e3464046ea43c2a7ad"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#e25546d4f7126f106c2f3b2d8ed2c792">Neuron</a> (vector&lt; <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> &gt; <a class="el" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a>, vector&lt; <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> &gt; <a class="el" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a>, double(*a)(double), double(*d)(double))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#9863a08b73bc97c8b514aca6c580ff7b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Neuron.html#f1bf19ec93174f60b368ee4a91b03f46">Neuron</a> (vector&lt; <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> &gt; <a class="el" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a>, vector&lt; <a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> &gt; <a class="el" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a>, double(*a)(double))</td></tr>
<tr><td class="mdescLeft">&nbsp;</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="mdescLeft">&nbsp;</td><td class="mdescRight">Alternative constructor, that gets also the synapsis linked to the neuron. <a href="#f1bf19ec93174f60b368ee4a91b03f46"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Synapsis.html">Synapsis</a> &amp;&nbsp;</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">&nbsp;</td><td class="mdescRight">Get the i-th synapsis connected on the input of the neuron. <a href="#29f2d9dcc4ca34f224d4dc39bb2f180a"></a><br></td></tr>
@ -87,14 +87,12 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(*&nbsp;</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(*&nbsp;</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&#39;s class.">NeuralNet</a> instead <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="c877424a295478e3464046ea43c2a7ad"></a><!-- doxytag: member="neuralpp::Neuron::Neuron" ref="c877424a295478e3464046ea43c2a7ad" args="(double(*a)(double), double(*d)(double))" -->
<a class="anchor" name="9863a08b73bc97c8b514aca6c580ff7b"></a><!-- doxytag: member="neuralpp::Neuron::Neuron" ref="9863a08b73bc97c8b514aca6c580ff7b" args="(double(*a)(double))" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -102,18 +100,9 @@ Don't use this class directly unless you know what you're doing, use <a class="e
<td class="memname">neuralpp::Neuron::Neuron </td>
<td>(</td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td class="paramname"> <em>a</em> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>d</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
@ -125,13 +114,12 @@ Constructor.
<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>&nbsp;</td><td>Activation function </td></tr>
<tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</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&lt; Synapsis &gt; in, vector&lt; Synapsis &gt; out, double(*a)(double), double(*d)(double))" -->
<a class="anchor" name="f1bf19ec93174f60b368ee4a91b03f46"></a><!-- doxytag: member="neuralpp::Neuron::Neuron" ref="f1bf19ec93174f60b368ee4a91b03f46" args="(vector&lt; Synapsis &gt; in, vector&lt; Synapsis &gt; out, double(*a)(double))" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -151,13 +139,7 @@ Constructor.
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>d</em></td><td>&nbsp;</td>
<td class="paramname"> <em>a</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
@ -176,7 +158,6 @@ Alternative constructor, that gets also the synapsis linked to the neuron.
<tr><td valign="top"></td><td valign="top"><em>in</em>&nbsp;</td><td>Input synapses </td></tr>
<tr><td valign="top"></td><td valign="top"><em>out</em>&nbsp;</td><td>Output synapses </td></tr>
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>Activation function </td></tr>
<tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td>Derivate of the activation function </td></tr>
</table>
</dl>
@ -551,27 +532,12 @@ Remove input and output synapsis from a neuron.
<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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -25,7 +25,6 @@
<h1>neuralpp::Synapsis Member List</h1>This is the complete list of members for <a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#2539b9eef2ff0f3522aea8d89e394f02">actv_f</a></td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">delta</a></td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#2940b370c283aa1b63890666942c26bf">deriv</a></td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#18f15b920609be8b818d43a0227aada5">getDelta</a>()</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#5ba8a93a5741f4855390eb8a46e99435">getIn</a>()</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#61c9a04e03291a01f44520cef143cbdd">getOut</a>()</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
@ -38,11 +37,11 @@
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#429ad5b25930faf436a9d725582802e1">setDelta</a>(double d)</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff">setWeight</a>(double w)</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8">Synapsis</a>(Neuron *i, Neuron *o, double w, double d)</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#a75e0de57380141973c46dd83d9985e2">Synapsis</a>(Neuron *i, Neuron *o, double(*a)(double), double(*d)(double))</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#3b9714684c845beae5b3474428509663">Synapsis</a>(Neuron *i, Neuron *o, double w, double(*a)(double), double(*d)(double))</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#b767332fdce81af25486b8969e5d2fb3">Synapsis</a>(Neuron *i, Neuron *o, double(*a)(double))</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#af6b80ab3203bccd2ee4a36f06537517">Synapsis</a>(Neuron *i, Neuron *o, double w, double(*a)(double))</td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classneuralpp_1_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">weight</a></td><td><a class="el" href="classneuralpp_1_1Synapsis.html">neuralpp::Synapsis</a></td><td><code> [private]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -37,20 +37,20 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</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">&nbsp;</td><td class="mdescRight">Constructor. <a href="#0729de9e737b9967421edcfc4b410bd8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</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="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#b767332fdce81af25486b8969e5d2fb3">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))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#a75e0de57380141973c46dd83d9985e2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</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">&nbsp;</td><td class="mdescRight">Constructor. <a href="#b767332fdce81af25486b8969e5d2fb3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#af6b80ab3203bccd2ee4a36f06537517">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))</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#3b9714684c845beae5b3474428509663"></a><br></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#af6b80ab3203bccd2ee4a36f06537517"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classneuralpp_1_1Neuron.html">Neuron</a> *&nbsp;</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> *&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff">setWeight</a> (double w)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff">setWeight</a> (double w) throw (InvalidSynapticalWeightException)</td></tr>
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#429ad5b25930faf436a9d725582802e1">setDelta</a> (double d)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#429ad5b25930faf436a9d725582802e1">setDelta</a> (double d) throw (InvalidSynapticalWeightException)</td></tr>
<tr><td class="mdescLeft">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classneuralpp_1_1Synapsis.html#aa79c16ec6b59949e5d2f75a3f10d530">getWeight</a> ()</td></tr>
@ -78,8 +78,6 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">double(*&nbsp;</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(*&nbsp;</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.
@ -136,7 +134,7 @@ Constructor.
</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))" -->
<a class="anchor" name="b767332fdce81af25486b8969e5d2fb3"></a><!-- doxytag: member="neuralpp::Synapsis::Synapsis" ref="b767332fdce81af25486b8969e5d2fb3" args="(Neuron *i, Neuron *o, double(*a)(double))" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -156,13 +154,7 @@ Constructor.
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>d</em></td><td>&nbsp;</td>
<td class="paramname"> <em>a</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
@ -181,13 +173,12 @@ Constructor.
<tr><td valign="top"></td><td valign="top"><em>i</em>&nbsp;</td><td>Input neuron </td></tr>
<tr><td valign="top"></td><td valign="top"><em>o</em>&nbsp;</td><td>Output neuron </td></tr>
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>Activation function </td></tr>
<tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</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))" -->
<a class="anchor" name="af6b80ab3203bccd2ee4a36f06537517"></a><!-- doxytag: member="neuralpp::Synapsis::Synapsis" ref="af6b80ab3203bccd2ee4a36f06537517" args="(Neuron *i, Neuron *o, double w, double(*a)(double))" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
@ -213,13 +204,7 @@ Constructor.
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>d</em></td><td>&nbsp;</td>
<td class="paramname"> <em>a</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
@ -239,7 +224,6 @@ Constructor.
<tr><td valign="top"></td><td valign="top"><em>o</em>&nbsp;</td><td>Output neuron </td></tr>
<tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>Weight for the synapsis (default: random) </td></tr>
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>Activation function </td></tr>
<tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td>Derivate for activation function </td></tr>
</table>
</dl>
@ -296,7 +280,7 @@ Constructor.
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>w</em> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td> throw (InvalidSynapticalWeightException)</td>
</tr>
</table>
</div>
@ -323,7 +307,7 @@ Set the weight of the synapsis.
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>d</em> </td>
<td>&nbsp;)&nbsp;</td>
<td></td>
<td> throw (InvalidSynapticalWeightException)</td>
</tr>
</table>
</div>
@ -533,27 +517,12 @@ This value is inversely proportional to the number of steps done in the learning
<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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -28,7 +28,7 @@
<tr><td class="indexkey"><a class="el" href="neural_09_09__exception_8hpp.html">neural++_exception.hpp</a> <a href="neural_09_09__exception_8hpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -93,7 +93,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classCMarkup.html#3257cd5f249587254e816d12bd3b0e0d">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -77,7 +77,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="structCMarkup_1_1NodeStack.html#499a05e053b785df518fb0b6124fd0ee">CMarkup::NodeStack</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -66,16 +66,11 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classCMarkup.html#637a7f8239f974d4ce5fe2e33336ca9e">CMarkup</a>
<li>delta
: <a class="el" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">neuralpp::Synapsis</a>
<li>deriv
: <a class="el" href="classneuralpp_1_1Neuron.html#8b881889e40e9782c49b0efad2b1dde3">neuralpp::Neuron</a>
, <a class="el" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576">neuralpp::NeuralNet</a>
, <a class="el" href="classneuralpp_1_1Layer.html#a0207b14ba80aaf03502749ecb7d23fa">neuralpp::Layer</a>
, <a class="el" href="classneuralpp_1_1Synapsis.html#2940b370c283aa1b63890666942c26bf">neuralpp::Synapsis</a>
<li>DetectUTF8()
: <a class="el" href="classCMarkup.html#f91e20dfe9e95194e3ca8143eeb889c2">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -72,17 +72,17 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="structneuralpp_1_1netrecord.html#ab0149ed5ea0694e88213a07cd4427d1">neuralpp::netrecord</a>
, <a class="el" href="classneuralpp_1_1NeuralNet.html#4cb52dae7b43d03fac73afca7b9f3a51">neuralpp::NeuralNet</a>
<li>error()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#8a140d28e6dd4097470c7c138801ad01">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#0616c51404efaca2714e37dd7478997e">neuralpp::NeuralNet</a>
<li>EscapeText()
: <a class="el" href="classCMarkup.html#ba91db9799ea46f2594a85f7026b6034">CMarkup</a>
<li>ex
: <a class="el" href="structneuralpp_1_1netrecord.html#dcc44fde3f67058d26ef2d5cbd0904e6">neuralpp::netrecord</a>
, <a class="el" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">neuralpp::NeuralNet</a>
<li>expected()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#423fd38a61d79905dcc12da84c805114">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#562dfe9fb8d73bf25a23ce608451d3aa">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -72,7 +72,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="structCMarkup_1_1FilePos.html#d5d7584cf09fa60ef62f5c764e1ee158">CMarkup::FilePos</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -93,7 +93,7 @@ Here is a list of all class members with links to the classes they belong to:
<li>getOut()
: <a class="el" href="classneuralpp_1_1Synapsis.html#61c9a04e03291a01f44520cef143cbdd">neuralpp::Synapsis</a>
<li>getOutput()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#7de7ee318eeb791d21a01e9e9e0e8c5a">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#961dce8913264bf64c899dce4e25f810">neuralpp::NeuralNet</a>
<li>getOutputs()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#a6b8bf3800b43b58843c65fc431207ae">neuralpp::NeuralNet</a>
<li>getPrevDelta()
@ -110,7 +110,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classneuralpp_1_1Synapsis.html#aa79c16ec6b59949e5d2f75a3f10d530">neuralpp::Synapsis</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -64,7 +64,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="structneuralpp_1_1netrecord.html#3c1728ac66c37f6ac85c404d4f55552e">neuralpp::netrecord</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -97,7 +97,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classCMarkup.html#f3a54e13b8565c2789c2c80aa2c9a563">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -62,7 +62,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classneuralpp_1_1NeuralNet.html#6bd7be443e46b2fdbf1da2edb8e611ab">neuralpp::NeuralNet</a>
, <a class="el" href="structneuralpp_1_1netrecord.html#a4f793a39a40144e811fef4d3d2d2b30">neuralpp::netrecord</a>
<li>Layer()
: <a class="el" href="classneuralpp_1_1Layer.html#117d1c3b481641816e80ea36826d2107">neuralpp::Layer</a>
: <a class="el" href="classneuralpp_1_1Layer.html#609ed16b8d79dc384b01ba7d16b72bd1">neuralpp::Layer</a>
<li>Length()
: <a class="el" href="structCMarkup_1_1TokenPos.html#b033dc8e88a8f83748ff6c44df05bb04">CMarkup::TokenPos</a>
<li>Level()
@ -74,7 +74,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classCMarkup.html#c7604e24564eac2dce702f7fbaf430a6">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -170,7 +170,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classneuralpp_1_1Synapsis.html#ecdb17182de791f7fdd417232e184350">neuralpp::Synapsis</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -65,7 +65,7 @@ Here is a list of all class members with links to the classes they belong to:
<li>NeuralNet()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#c79534c7c0dfb20d1d03be2ad7569b78">neuralpp::NeuralNet</a>
<li>Neuron()
: <a class="el" href="classneuralpp_1_1Neuron.html#e25546d4f7126f106c2f3b2d8ed2c792">neuralpp::Neuron</a>
: <a class="el" href="classneuralpp_1_1Neuron.html#f1bf19ec93174f60b368ee4a91b03f46">neuralpp::Neuron</a>
<li>nFailedChars
: <a class="el" href="structCMarkup_1_1ConvertEncoding.html#bfd8cc96d41531109b9301b4d28a695f">CMarkup::ConvertEncoding</a>
<li>nFileByteLen
@ -127,7 +127,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="structCMarkup_1_1NodeStack.html#f3e08fa5dce853a6267da9f77ef3f986">CMarkup::NodeStack</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -76,7 +76,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="structneuralpp_1_1netrecord.html#95f2b0651dd3a0e5e7201ff354e401b4">neuralpp::netrecord</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -94,7 +94,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classneuralpp_1_1Neuron.html#bca65db84f56f9d40694bfbcd25812cb">neuralpp::Neuron</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -85,7 +85,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classCMarkup.html#dbab6d52d320eac695850f0b47e5b5ce">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -61,7 +61,7 @@ Here is a list of all class members with links to the classes they belong to:
<li>Save()
: <a class="el" href="classCMarkup.html#61b774f533449eeda7f3d78d8d69e4fb">CMarkup</a>
<li>save()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#5db8d6ba4785f732da6e642b4f8f11a0">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#fdf94c276720c25e565cac834fe8a407">neuralpp::NeuralNet</a>
<li>SavedPos()
: <a class="el" href="structCMarkup_1_1SavedPos.html#203b3a22eb86b1131985a6631e3d3c47">CMarkup::SavedPos</a>
<li>SavedPosMap()
@ -109,7 +109,7 @@ Here is a list of all class members with links to the classes they belong to:
<li>setWeight()
: <a class="el" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff">neuralpp::Synapsis</a>
<li>size()
: <a class="el" href="classneuralpp_1_1Layer.html#c8d2f7513e5d40518f9dddfd1e3ddcc5">neuralpp::Layer</a>
: <a class="el" href="classneuralpp_1_1Layer.html#7ca71ed62fbe9c1e9c0fb6a8dcaf76f0">neuralpp::Layer</a>
<li>source
: <a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f">neuralpp::NeuralNet</a>
<li>split()
@ -145,7 +145,7 @@ Here is a list of all class members with links to the classes they belong to:
<li>strToEncoding
: <a class="el" href="structCMarkup_1_1ConvertEncoding.html#cc2420305e7cfa6c9d18f7ce9daa4313">CMarkup::ConvertEncoding</a>
<li>Synapsis()
: <a class="el" href="classneuralpp_1_1Synapsis.html#a75e0de57380141973c46dd83d9985e2">neuralpp::Synapsis</a>
: <a class="el" href="classneuralpp_1_1Synapsis.html#b767332fdce81af25486b8969e5d2fb3">neuralpp::Synapsis</a>
<li>synClear()
: <a class="el" href="classneuralpp_1_1Neuron.html#2e2ccb69277fc3d992a3a3f2360ed154">neuralpp::Neuron</a>
<li>synIn()
@ -154,7 +154,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classneuralpp_1_1Neuron.html#655f1637e1b754461413ac7fc2ffeebe">neuralpp::Neuron</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -65,10 +65,10 @@ Here is a list of all class members with links to the classes they belong to:
<li>TopIndex()
: <a class="el" href="structCMarkup_1_1NodeStack.html#4e9aad88e12b7bbabdbb3fd65fc51585">CMarkup::NodeStack</a>
<li>train()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#e8b8741d28bec1354db555eabe418cb6">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#ead4bdef0602a5cadbe3beb685e01f5f">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -74,7 +74,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classCMarkup.html#8e6cb088e69b6078f5923b0940fd647c">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -66,7 +66,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classCMarkup.html#983286cbcb7c4f9aa1f462ffb5dc641f">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -164,7 +164,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="classneuralpp_1_1NeuralNet.html#4be31ecb0b543a192997bd83c6995ccb">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -70,7 +70,7 @@ Here is a list of all class members with links to the classes they belong to:
: <a class="el" href="structCMarkup_1_1SavedPosMapArray.html#6be57f9ebe160aebb464957caa30ddd6">CMarkup::SavedPosMapArray</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -46,7 +46,7 @@
: <a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -136,7 +136,7 @@
: <a class="el" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -83,7 +83,7 @@
: <a class="el" href="classCMarkup.html#3257cd5f249587254e816d12bd3b0e0d">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -76,7 +76,7 @@
: <a class="el" href="structCMarkup_1_1NodeStack.html#499a05e053b785df518fb0b6124fd0ee">CMarkup::NodeStack</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -65,7 +65,7 @@
: <a class="el" href="classCMarkup.html#f91e20dfe9e95194e3ca8143eeb889c2">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -66,14 +66,14 @@
<li>EndTagLen()
: <a class="el" href="structCMarkup_1_1ElemPos.html#d9d0ad0c48a129555d1052e98e4f71bd">CMarkup::ElemPos</a>
<li>error()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#8a140d28e6dd4097470c7c138801ad01">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#0616c51404efaca2714e37dd7478997e">neuralpp::NeuralNet</a>
<li>EscapeText()
: <a class="el" href="classCMarkup.html#ba91db9799ea46f2594a85f7026b6034">CMarkup</a>
<li>expected()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#423fd38a61d79905dcc12da84c805114">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#562dfe9fb8d73bf25a23ce608451d3aa">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -67,7 +67,7 @@
: <a class="el" href="classCMarkup.html#e29573627f9b0cdc0d7152ff749ba407">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -92,7 +92,7 @@
<li>getOut()
: <a class="el" href="classneuralpp_1_1Synapsis.html#61c9a04e03291a01f44520cef143cbdd">neuralpp::Synapsis</a>
<li>getOutput()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#7de7ee318eeb791d21a01e9e9e0e8c5a">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#961dce8913264bf64c899dce4e25f810">neuralpp::NeuralNet</a>
<li>getOutputs()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#a6b8bf3800b43b58843c65fc431207ae">neuralpp::NeuralNet</a>
<li>getPrevDelta()
@ -109,7 +109,7 @@
: <a class="el" href="classneuralpp_1_1Synapsis.html#aa79c16ec6b59949e5d2f75a3f10d530">neuralpp::Synapsis</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -79,7 +79,7 @@
: <a class="el" href="classCMarkup.html#f3a54e13b8565c2789c2c80aa2c9a563">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -58,7 +58,7 @@
<p>
<h3><a class="anchor" name="index_l">- l -</a></h3><ul>
<li>Layer()
: <a class="el" href="classneuralpp_1_1Layer.html#411a4dc8a1bb2fe44fe7a69fa50fd764">neuralpp::Layer</a>
: <a class="el" href="classneuralpp_1_1Layer.html#fb08bddd85d36570dabfe915461f07c5">neuralpp::Layer</a>
<li>Length()
: <a class="el" href="structCMarkup_1_1TokenPos.html#b033dc8e88a8f83748ff6c44df05bb04">CMarkup::TokenPos</a>
<li>Level()
@ -70,7 +70,7 @@
: <a class="el" href="classCMarkup.html#c7604e24564eac2dce702f7fbaf430a6">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -65,7 +65,7 @@
: <a class="el" href="classneuralpp_1_1Synapsis.html#ecdb17182de791f7fdd417232e184350">neuralpp::Synapsis</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -60,7 +60,7 @@
<li>NeuralNet()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2">neuralpp::NeuralNet</a>
<li>Neuron()
: <a class="el" href="classneuralpp_1_1Neuron.html#c877424a295478e3464046ea43c2a7ad">neuralpp::Neuron</a>
: <a class="el" href="classneuralpp_1_1Neuron.html#9863a08b73bc97c8b514aca6c580ff7b">neuralpp::Neuron</a>
<li>nIn()
: <a class="el" href="classneuralpp_1_1Neuron.html#ad97f1a082d5f969eb4c69ab454ecfbb">neuralpp::Neuron</a>
<li>NodePos()
@ -71,7 +71,7 @@
: <a class="el" href="classneuralpp_1_1Neuron.html#fe458021e3b20d58dc608fb94ae2135b">neuralpp::Neuron</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -68,7 +68,7 @@
: <a class="el" href="classCMarkup.html#012bca9ceaf157033a5697fa6ea92e45">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -69,7 +69,7 @@
: <a class="el" href="classneuralpp_1_1Neuron.html#bca65db84f56f9d40694bfbcd25812cb">neuralpp::Neuron</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -82,7 +82,7 @@
: <a class="el" href="classCMarkup.html#dbab6d52d320eac695850f0b47e5b5ce">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -60,7 +60,7 @@
<li>Save()
: <a class="el" href="classCMarkup.html#61b774f533449eeda7f3d78d8d69e4fb">CMarkup</a>
<li>save()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#5db8d6ba4785f732da6e642b4f8f11a0">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#fdf94c276720c25e565cac834fe8a407">neuralpp::NeuralNet</a>
<li>SavedPos()
: <a class="el" href="structCMarkup_1_1SavedPos.html#203b3a22eb86b1131985a6631e3d3c47">CMarkup::SavedPos</a>
<li>SavedPosMap()
@ -108,7 +108,7 @@
<li>setWeight()
: <a class="el" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff">neuralpp::Synapsis</a>
<li>size()
: <a class="el" href="classneuralpp_1_1Layer.html#c8d2f7513e5d40518f9dddfd1e3ddcc5">neuralpp::Layer</a>
: <a class="el" href="classneuralpp_1_1Layer.html#7ca71ed62fbe9c1e9c0fb6a8dcaf76f0">neuralpp::Layer</a>
<li>split()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#e07af23ceb8666518da0c035bf1e0376">neuralpp::NeuralNet</a>
<li>StartAfter()
@ -129,7 +129,7 @@
: <a class="el" href="classneuralpp_1_1Neuron.html#655f1637e1b754461413ac7fc2ffeebe">neuralpp::Neuron</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -64,10 +64,10 @@
<li>TopIndex()
: <a class="el" href="structCMarkup_1_1NodeStack.html#4e9aad88e12b7bbabdbb3fd65fc51585">CMarkup::NodeStack</a>
<li>train()
: <a class="el" href="classneuralpp_1_1NeuralNet.html#e8b8741d28bec1354db555eabe418cb6">neuralpp::NeuralNet</a>
: <a class="el" href="classneuralpp_1_1NeuralNet.html#ead4bdef0602a5cadbe3beb685e01f5f">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -71,7 +71,7 @@
: <a class="el" href="classCMarkup.html#8e6cb088e69b6078f5923b0940fd647c">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -61,7 +61,7 @@
: <a class="el" href="classCMarkup.html#983286cbcb7c4f9aa1f462ffb5dc641f">CMarkup</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -163,7 +163,7 @@
: <a class="el" href="classneuralpp_1_1NeuralNet.html#4be31ecb0b543a192997bd83c6995ccb">neuralpp::NeuralNet</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -69,7 +69,7 @@
: <a class="el" href="structCMarkup_1_1SavedPosMapArray.html#6be57f9ebe160aebb464957caa30ddd6">CMarkup::SavedPosMapArray</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -68,11 +68,6 @@
: <a class="el" href="structneuralpp_1_1synrecord.html#3a862082dfa0edffce84936818bab374">neuralpp::synrecord</a>
<li>delta
: <a class="el" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">neuralpp::Synapsis</a>
<li>deriv
: <a class="el" href="classneuralpp_1_1Neuron.html#8b881889e40e9782c49b0efad2b1dde3">neuralpp::Neuron</a>
, <a class="el" href="classneuralpp_1_1Synapsis.html#2940b370c283aa1b63890666942c26bf">neuralpp::Synapsis</a>
, <a class="el" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576">neuralpp::NeuralNet</a>
, <a class="el" href="classneuralpp_1_1Layer.html#a0207b14ba80aaf03502749ecb7d23fa">neuralpp::Layer</a>
</ul>
<h3><a class="anchor" name="index_e">- e -</a></h3><ul>
<li>elements
@ -263,7 +258,7 @@
: <a class="el" href="classneuralpp_1_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">neuralpp::Synapsis</a>
</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -145,7 +145,7 @@ Here is a list of all file members with links to the files they belong to:
: <a class="el" href="neural_09_09_8hpp.html#839a9222721835f53c5b248241f535f4">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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -145,7 +145,7 @@
: <a class="el" href="neural_09_09_8hpp.html#839a9222721835f53c5b248241f535f4">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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -19,7 +19,7 @@
<h1>Neural++ Documentation</h1>
<p>
<h3 align="center">0.3 </h3></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:17 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -14,6 +14,12 @@
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="namespaces.html"><span>Namespace List</span></a></li>
<li><a href="namespacemembers.html"><span>Namespace&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>neuralpp Namespace Reference</h1>Main namespace for the library.
@ -40,10 +46,43 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structneuralpp_1_1synrecord.html">synrecord</a></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceneuralpp.html#43c8197cc83f65fa9676386579671aec">df</a> (double(*f)(double), double x)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Main namespace for the library. </div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
Main namespace for the library. <hr><h2>Function Documentation</h2>
<a class="anchor" name="43c8197cc83f65fa9676386579671aec"></a><!-- doxytag: member="neuralpp::df" ref="43c8197cc83f65fa9676386579671aec" args="(double(*f)(double), double x)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double neuralpp::df </td>
<td>(</td>
<td class="paramtype">double(*)(double)&nbsp;</td>
<td class="paramname"> <em>f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double&nbsp;</td>
<td class="paramname"> <em>x</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -14,13 +14,19 @@
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li class="current"><a href="namespaces.html"><span>Namespace List</span></a></li>
<li><a href="namespacemembers.html"><span>Namespace&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Namespace List</h1>Here is a list of all namespaces with brief descriptions:<table>
<tr><td class="indexkey"><a class="el" href="namespaceneuralpp.html">neuralpp</a></td><td class="indexvalue">Main namespace for the library </td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -36,215 +36,208 @@
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;cmath&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;ctime&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;cmath&gt;</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="neural_09_09__exception_8hpp.html">neural++_exception.hpp</a>"</span>
<a name="l00026"></a>00026 <span class="keyword">using namespace </span>std;
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="neural_09_09__exception_8hpp.html">neural++_exception.hpp</a>"</span>
<a name="l00029"></a>00029 <span class="keyword">using namespace </span>std;
<a name="l00030"></a>00030
<a name="l00032"></a><a class="code" href="neural_09_09_8hpp.html#839a9222721835f53c5b248241f535f4">00032</a> <span class="preprocessor">#define RAND ( abs( sin(rand()) ) )</span>
<a name="l00029"></a><a class="code" href="neural_09_09_8hpp.html#839a9222721835f53c5b248241f535f4">00029</a> <span class="preprocessor">#define RAND (double) ( (rand() / (RAND_MAX/2)) - 1)</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00032"></a><a class="code" href="neural_09_09_8hpp.html#05e2bb5b9fc32f0b6b4d84fe43177d72">00032</a> <span class="preprocessor">#define BETA0 0.8</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00035"></a><a class="code" href="neural_09_09_8hpp.html#05e2bb5b9fc32f0b6b4d84fe43177d72">00035</a> <span class="preprocessor">#define BETA0 0.7</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="keyword">namespace </span>neuralpp {
<a name="l00042"></a>00042 <span class="keyword">class </span>Synapsis;
<a name="l00043"></a>00043 <span class="keyword">class </span>Neuron;
<a name="l00044"></a>00044 <span class="keyword">class </span>Layer;
<a name="l00045"></a>00045 <span class="keyword">class </span>NeuralNet;
<a name="l00046"></a>00046 <span class="keyword">class </span>NetworkFileNotFoundException;
<a name="l00047"></a>00047 <span class="keyword">class </span>InvalidXMLException;
<a name="l00048"></a>00048
<a name="l00053"></a><a class="code" href="classneuralpp_1_1NeuralNet.html">00053</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1NeuralNet.html" title="Main project&amp;#39;s class.">NeuralNet</a> {
<a name="l00054"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#4cb52dae7b43d03fac73afca7b9f3a51">00054</a> <span class="keywordtype">int</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#4cb52dae7b43d03fac73afca7b9f3a51">epochs</a>;
<a name="l00055"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#4f88106c9e542c39eac43b4ca1974a2a">00055</a> <span class="keywordtype">int</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#4f88106c9e542c39eac43b4ca1974a2a">ref_epochs</a>;
<a name="l00056"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#6bd7be443e46b2fdbf1da2edb8e611ab">00056</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#6bd7be443e46b2fdbf1da2edb8e611ab">l_rate</a>;
<a name="l00057"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">00057</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>;
<a name="l00058"></a>00058
<a name="l00059"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">00059</a> <a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>* <a class="code" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">input</a>;
<a name="l00060"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">00060</a> <a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>* <a class="code" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">hidden</a>;
<a name="l00061"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">00061</a> <a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>* <a class="code" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">output</a>;
<a name="l00062"></a>00062
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#94169c89a7cd47122ab5dbf1d5c5e108" title="It updates the weights of the net&amp;#39;s synapsis through back-propagation.">updateWeights</a>();
<a name="l00038"></a>00038 <span class="keyword">namespace </span>neuralpp {
<a name="l00039"></a>00039 <span class="keyword">class </span>Synapsis;
<a name="l00040"></a>00040 <span class="keyword">class </span>Neuron;
<a name="l00041"></a>00041 <span class="keyword">class </span>Layer;
<a name="l00042"></a>00042 <span class="keyword">class </span>NeuralNet;
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="keywordtype">double</span> <a class="code" href="namespaceneuralpp.html#43c8197cc83f65fa9676386579671aec">df</a> (<span class="keywordtype">double</span> (*f)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span> x);
<a name="l00045"></a>00045
<a name="l00050"></a><a class="code" href="classneuralpp_1_1NeuralNet.html">00050</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1NeuralNet.html" title="Main project&amp;#39;s class.">NeuralNet</a> {
<a name="l00051"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#4cb52dae7b43d03fac73afca7b9f3a51">00051</a> <span class="keywordtype">int</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#4cb52dae7b43d03fac73afca7b9f3a51">epochs</a>;
<a name="l00052"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#4f88106c9e542c39eac43b4ca1974a2a">00052</a> <span class="keywordtype">int</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#4f88106c9e542c39eac43b4ca1974a2a">ref_epochs</a>;
<a name="l00053"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#6bd7be443e46b2fdbf1da2edb8e611ab">00053</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#6bd7be443e46b2fdbf1da2edb8e611ab">l_rate</a>;
<a name="l00054"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">00054</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>;
<a name="l00055"></a>00055
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#94169c89a7cd47122ab5dbf1d5c5e108" title="It updates the weights of the net&amp;#39;s synapsis through back-propagation.">updateWeights</a>();
<a name="l00061"></a>00061
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#62695a82dfb1df758a44150921aec8e0" title="It commits the changes made by updateWeights() to the layer l.">commitChanges</a> (<a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a> *l);
<a name="l00068"></a>00068
<a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#62695a82dfb1df758a44150921aec8e0" title="It commits the changes made by updateWeights() to the layer l.">commitChanges</a> (<a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a> *l);
<a name="l00075"></a>00075
<a name="l00081"></a>00081 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#8a140d28e6dd4097470c7c138801ad01" title="It get the error made on the expected result as |v-v&amp;#39;|/v.">error</a>(<span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>);
<a name="l00082"></a>00082
<a name="l00087"></a>00087 double (*<a class="code" href="classneuralpp_1_1NeuralNet.html#c1469e6afd87d85b82f14bc246f82457" title="Private pointer to function, containing the function to be used as activation function...">actv_f</a>)(double);
<a name="l00088"></a>00088
<a name="l00093"></a>00093 double (*<a class="code" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576" title="Private pointer to function, containing the function to be used as derivate of the...">deriv</a>)(double);
<a name="l00094"></a>00094
<a name="l00095"></a>00095 <span class="keyword">public</span>:
<a name="l00099"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">00099</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f5ec2727c0756ddb097b53efe49b81afb">file</a>, <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">str</a> } <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f" title="Enum to choose the eventual training source for our network (XML from a file or from...">source</a>;
<a name="l00100"></a>00100
<a name="l00104"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2">00104</a> <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a>() {}
<a name="l00105"></a>00105
<a name="l00116"></a>00116 <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a> (<span class="keywordtype">size_t</span> in_size, <span class="keywordtype">size_t</span> hidden_size, <span class="keywordtype">size_t</span> out_size, <span class="keywordtype">double</span> l, <span class="keywordtype">int</span> e);
<a name="l00117"></a>00117
<a name="l00123"></a>00123 <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a> (<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f5ec2727c0756ddb097b53efe49b81afb">file</a>) <span class="keywordflow">throw</span>(NetworkFileNotFoundException);
<a name="l00124"></a>00124
<a name="l00125"></a>00125
<a name="l00138"></a>00138 <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a> (<span class="keywordtype">size_t</span> in_size, <span class="keywordtype">size_t</span> hidden_size, <span class="keywordtype">size_t</span> out_size,
<a name="l00139"></a>00139 <span class="keywordtype">double</span>(*actv)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span>(*<a class="code" href="classneuralpp_1_1NeuralNet.html#df44689f4e6201ca1ddc67655cce3576" title="Private pointer to function, containing the function to be used as derivate of the...">deriv</a>)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span> l, <span class="keywordtype">int</span> e);
<a name="l00140"></a>00140
<a name="l00146"></a>00146 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#7de7ee318eeb791d21a01e9e9e0e8c5a" title="It gets the output of the network (note: the layer output should contain an only...">getOutput</a>();
<a name="l00147"></a>00147
<a name="l00152"></a>00152 vector&lt;double&gt; <a class="code" href="classneuralpp_1_1NeuralNet.html#a6b8bf3800b43b58843c65fc431207ae" title="It gets the output of the network in case the output layer contains more neurons...">getOutputs</a>();
<a name="l00153"></a>00153
<a name="l00159"></a>00159 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#423fd38a61d79905dcc12da84c805114" title="It gets the value expected.">expected</a>();
<a name="l00160"></a>00160
<a name="l00165"></a>00165 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#b6475762b7e9eab086befdc511f7c236" title="It sets the value you expect from your network.">setExpected</a>(<span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>);
<a name="l00166"></a>00166
<a name="l00172"></a>00172 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#b0bd1daadb06980dff1f50d33a7c098e" title="It updates through back-propagation the weights of the synapsis and computes again...">update</a>();
<a name="l00173"></a>00173
<a name="l00178"></a>00178 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#c129c180647362da963758bfd1ba6890" title="It propagates values through the network.">propagate</a>();
<a name="l00179"></a>00179
<a name="l00184"></a>00184 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#0de170e8ab561ad63d0739b4c4b74f68" title="It sets the input for the network.">setInput</a> (vector&lt;double&gt;&amp; v);
<a name="l00185"></a>00185
<a name="l00190"></a>00190 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#46f23f462318a4ffc037a4e806364c3f" title="It links the layers of the network (input, hidden, output).">link</a>();
<a name="l00191"></a>00191
<a name="l00196"></a>00196 <span class="keywordtype">bool</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#5db8d6ba4785f732da6e642b4f8f11a0" title="Save a trained neural network to a binary file.">save</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fname);
<a name="l00197"></a>00197
<a name="l00205"></a>00205 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#e8b8741d28bec1354db555eabe418cb6" title="Train a network using a training set loaded from an XML file.">train</a>(<span class="keywordtype">string</span> xml, <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f" title="Enum to choose the eventual training source for our network (XML from a file or from...">source</a> xrc) <span class="keywordflow">throw</span>(InvalidXMLException);
<a name="l00206"></a>00206
<a name="l00211"></a>00211 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#45c7645d4affe65752d37cd230afba24" title="Initialize the training XML for the neural network.">initXML</a> (<span class="keywordtype">string</span>&amp; xml);
<a name="l00074"></a>00074 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#0616c51404efaca2714e37dd7478997e" title="Get the error made on the expected result as |v-v&amp;#39;|/v.">error</a>(<span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>) <span class="keyword">const</span>;
<a name="l00075"></a>00075
<a name="l00080"></a>00080 double (*<a class="code" href="classneuralpp_1_1NeuralNet.html#c1469e6afd87d85b82f14bc246f82457" title="Private pointer to function, containing the function to be used as activation function...">actv_f</a>)(double);
<a name="l00081"></a>00081
<a name="l00082"></a>00082 <span class="keyword">public</span>:
<a name="l00083"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">00083</a> <a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>* <a class="code" href="classneuralpp_1_1NeuralNet.html#e2b4e8405f9d25edab395d61502bdba9">input</a>;
<a name="l00084"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">00084</a> <a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>* <a class="code" href="classneuralpp_1_1NeuralNet.html#bbdaa1b6c0a1a95d2b18cd25fda2a266">hidden</a>;
<a name="l00085"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">00085</a> <a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>* <a class="code" href="classneuralpp_1_1NeuralNet.html#fa9b2dbcbb39d0fc70f790ac24069a74">output</a>;
<a name="l00086"></a>00086
<a name="l00090"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">00090</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f5ec2727c0756ddb097b53efe49b81afb">file</a>, <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">str</a> } <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f" title="Enum to choose the eventual training source for our network (XML from a file or from...">source</a>;
<a name="l00091"></a>00091
<a name="l00095"></a><a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2">00095</a> <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a>() {}
<a name="l00096"></a>00096
<a name="l00107"></a>00107 <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a> (<span class="keywordtype">size_t</span> in_size, <span class="keywordtype">size_t</span> hidden_size, <span class="keywordtype">size_t</span> out_size, <span class="keywordtype">double</span> l, <span class="keywordtype">int</span> e);
<a name="l00108"></a>00108
<a name="l00114"></a>00114 <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a> (<span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f5ec2727c0756ddb097b53efe49b81afb">file</a>) <span class="keywordflow">throw</span>(NetworkFileNotFoundException);
<a name="l00115"></a>00115
<a name="l00116"></a>00116
<a name="l00128"></a>00128 <a class="code" href="classneuralpp_1_1NeuralNet.html#92b145f2f6f00bf1ba645ce2235882c2" title="Empty constructor for the class - it just makes nothing.">NeuralNet</a> (<span class="keywordtype">size_t</span> in_size, <span class="keywordtype">size_t</span> hidden_size, <span class="keywordtype">size_t</span> out_size,
<a name="l00129"></a>00129 <span class="keywordtype">double</span>(*actv)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span> l, <span class="keywordtype">int</span> e);
<a name="l00130"></a>00130
<a name="l00136"></a>00136 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#961dce8913264bf64c899dce4e25f810" title="It gets the output of the network (note: the layer output should contain an only...">getOutput</a>() <span class="keyword">const</span>;
<a name="l00137"></a>00137
<a name="l00142"></a>00142 vector&lt;double&gt; <a class="code" href="classneuralpp_1_1NeuralNet.html#a6b8bf3800b43b58843c65fc431207ae" title="It gets the output of the network in case the output layer contains more neurons...">getOutputs</a>();
<a name="l00143"></a>00143
<a name="l00149"></a>00149 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#562dfe9fb8d73bf25a23ce608451d3aa" title="It gets the value expected.">expected</a>() <span class="keyword">const</span>;
<a name="l00150"></a>00150
<a name="l00155"></a>00155 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#b6475762b7e9eab086befdc511f7c236" title="It sets the value you expect from your network.">setExpected</a>(<span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#261f5f68fcc5be54250cfa03945266dd">ex</a>);
<a name="l00156"></a>00156
<a name="l00162"></a>00162 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#b0bd1daadb06980dff1f50d33a7c098e" title="It updates through back-propagation the weights of the synapsis and computes again...">update</a>();
<a name="l00163"></a>00163
<a name="l00168"></a>00168 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#c129c180647362da963758bfd1ba6890" title="It propagates values through the network.">propagate</a>();
<a name="l00169"></a>00169
<a name="l00174"></a>00174 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#0de170e8ab561ad63d0739b4c4b74f68" title="It sets the input for the network.">setInput</a> (vector&lt;double&gt;&amp; v);
<a name="l00175"></a>00175
<a name="l00180"></a>00180 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#46f23f462318a4ffc037a4e806364c3f" title="It links the layers of the network (input, hidden, output).">link</a>();
<a name="l00181"></a>00181
<a name="l00188"></a>00188 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#fdf94c276720c25e565cac834fe8a407" title="Save a trained neural network to a binary file.">save</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fname) <span class="keywordflow">throw</span>(NetworkFileWriteException);
<a name="l00189"></a>00189
<a name="l00197"></a>00197 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#ead4bdef0602a5cadbe3beb685e01f5f" title="Train a network using a training set loaded from an XML file.">train</a> (<span class="keywordtype">string</span> xml, <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f" title="Enum to choose the eventual training source for our network (XML from a file or from...">source</a> src) <span class="keywordflow">throw</span>(InvalidXMLException);
<a name="l00198"></a>00198
<a name="l00203"></a>00203 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#45c7645d4affe65752d37cd230afba24" title="Initialize the training XML for the neural network.">initXML</a> (<span class="keywordtype">string</span>&amp; xml);
<a name="l00204"></a>00204
<a name="l00211"></a>00211 <span class="keyword">static</span> vector&lt;double&gt; <a class="code" href="classneuralpp_1_1NeuralNet.html#e07af23ceb8666518da0c035bf1e0376" title="Splits a string into a vector of doubles, given a delimitator.">split</a> (<span class="keywordtype">char</span> delim, <span class="keywordtype">string</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">str</a>);
<a name="l00212"></a>00212
<a name="l00219"></a>00219 <span class="keyword">static</span> vector&lt;double&gt; <a class="code" href="classneuralpp_1_1NeuralNet.html#e07af23ceb8666518da0c035bf1e0376" title="Splits a string into a vector of doubles, given a delimitator.">split</a> (<span class="keywordtype">char</span> delim, <span class="keywordtype">string</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#94c36c94060e785ea67a0014c4182f8f6d06b4fe9414a158c97aee1a3679a904">str</a>);
<a name="l00220"></a>00220
<a name="l00233"></a>00233 <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#4be31ecb0b543a192997bd83c6995ccb" title="Get a training set from a string and copies it to an XML For example, these strings...">XMLFromSet</a> (<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">string</span> <span class="keyword">set</span>);
<a name="l00234"></a>00234
<a name="l00239"></a>00239 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#28b9966c5f197b8e86d57dd104aa32a6" title="Closes an open XML document generated by &amp;quot;initXML&amp;quot; and &amp;quot;XMLFromSet&amp;quot;...">closeXML</a>(<span class="keywordtype">string</span>&amp; xml);
<a name="l00240"></a>00240 };
<a name="l00241"></a>00241
<a name="l00247"></a><a class="code" href="classneuralpp_1_1Synapsis.html">00247</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a> {
<a name="l00248"></a><a class="code" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">00248</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">delta</a>;
<a name="l00249"></a><a class="code" href="classneuralpp_1_1Synapsis.html#65471cd6c9ef87609dfa4b0e5fafa708">00249</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#65471cd6c9ef87609dfa4b0e5fafa708">prev_delta</a>;
<a name="l00250"></a><a class="code" href="classneuralpp_1_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">00250</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">weight</a>;
<a name="l00251"></a>00251
<a name="l00252"></a><a class="code" href="classneuralpp_1_1Synapsis.html#83d41c158054b08bd05051736e89a0ad">00252</a> <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a> *<a class="code" href="classneuralpp_1_1Synapsis.html#83d41c158054b08bd05051736e89a0ad">in</a>;
<a name="l00253"></a><a class="code" href="classneuralpp_1_1Synapsis.html#fb219e05038fa0da20db1082ab0500be">00253</a> <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a> *<a class="code" href="classneuralpp_1_1Synapsis.html#fb219e05038fa0da20db1082ab0500be">out</a>;
<a name="l00254"></a>00254
<a name="l00255"></a>00255 double (*<a class="code" href="classneuralpp_1_1Synapsis.html#2539b9eef2ff0f3522aea8d89e394f02">actv_f</a>)(double);
<a name="l00256"></a>00256 double (*<a class="code" href="classneuralpp_1_1Synapsis.html#2940b370c283aa1b63890666942c26bf">deriv</a>)(double);
<a name="l00257"></a>00257
<a name="l00258"></a>00258 <span class="keyword">public</span>:
<a name="l00266"></a>00266 <a class="code" href="classneuralpp_1_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8" title="Constructor.">Synapsis</a>(<a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* i, <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* o, <span class="keywordtype">double</span> w, <span class="keywordtype">double</span> d);
<a name="l00267"></a>00267
<a name="l00275"></a>00275 <a class="code" href="classneuralpp_1_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8" title="Constructor.">Synapsis</a> (<a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* i, <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* o, <span class="keywordtype">double</span>(*a)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span>(*d)(<span class="keywordtype">double</span>));
<a name="l00276"></a>00276
<a name="l00285"></a>00285 <a class="code" href="classneuralpp_1_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8" title="Constructor.">Synapsis</a> (<a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* i, <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* o,
<a name="l00286"></a>00286 <span class="keywordtype">double</span> w, <span class="keywordtype">double</span>(*a)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span>(*d)(<span class="keywordtype">double</span>));
<a name="l00287"></a>00287
<a name="l00291"></a>00291 <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* <a class="code" href="classneuralpp_1_1Synapsis.html#5ba8a93a5741f4855390eb8a46e99435">getIn</a>();
<a name="l00225"></a>00225 <span class="keyword">static</span> <span class="keywordtype">string</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#4be31ecb0b543a192997bd83c6995ccb" title="Get a training set from a string and copies it to an XML For example, these strings...">XMLFromSet</a> (<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">string</span> <span class="keyword">set</span>);
<a name="l00226"></a>00226
<a name="l00231"></a>00231 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1NeuralNet.html#28b9966c5f197b8e86d57dd104aa32a6" title="Closes an open XML document generated by &amp;quot;initXML&amp;quot; and &amp;quot;XMLFromSet&amp;quot;...">closeXML</a>(<span class="keywordtype">string</span>&amp; xml);
<a name="l00232"></a>00232 };
<a name="l00233"></a>00233
<a name="l00239"></a><a class="code" href="classneuralpp_1_1Synapsis.html">00239</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a> {
<a name="l00240"></a><a class="code" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">00240</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#617fdc4305f8f1850eac267a7ee22660">delta</a>;
<a name="l00241"></a><a class="code" href="classneuralpp_1_1Synapsis.html#65471cd6c9ef87609dfa4b0e5fafa708">00241</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#65471cd6c9ef87609dfa4b0e5fafa708">prev_delta</a>;
<a name="l00242"></a><a class="code" href="classneuralpp_1_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">00242</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#0bc523a8135ebbb5c0da932939d30ed7">weight</a>;
<a name="l00243"></a>00243
<a name="l00244"></a><a class="code" href="classneuralpp_1_1Synapsis.html#83d41c158054b08bd05051736e89a0ad">00244</a> <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a> *<a class="code" href="classneuralpp_1_1Synapsis.html#83d41c158054b08bd05051736e89a0ad">in</a>;
<a name="l00245"></a><a class="code" href="classneuralpp_1_1Synapsis.html#fb219e05038fa0da20db1082ab0500be">00245</a> <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a> *<a class="code" href="classneuralpp_1_1Synapsis.html#fb219e05038fa0da20db1082ab0500be">out</a>;
<a name="l00246"></a>00246
<a name="l00247"></a>00247 double (*<a class="code" href="classneuralpp_1_1Synapsis.html#2539b9eef2ff0f3522aea8d89e394f02">actv_f</a>)(double);
<a name="l00248"></a>00248
<a name="l00249"></a>00249 <span class="keyword">public</span>:
<a name="l00257"></a>00257 <a class="code" href="classneuralpp_1_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8" title="Constructor.">Synapsis</a>(<a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* i, <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* o, <span class="keywordtype">double</span> w, <span class="keywordtype">double</span> d);
<a name="l00258"></a>00258
<a name="l00265"></a>00265 <a class="code" href="classneuralpp_1_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8" title="Constructor.">Synapsis</a> (<a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* i, <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* o, <span class="keywordtype">double</span>(*a)(<span class="keywordtype">double</span>));
<a name="l00266"></a>00266
<a name="l00274"></a>00274 <a class="code" href="classneuralpp_1_1Synapsis.html#0729de9e737b9967421edcfc4b410bd8" title="Constructor.">Synapsis</a> (<a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* i, <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* o,
<a name="l00275"></a>00275 <span class="keywordtype">double</span> w, <span class="keywordtype">double</span>(*a)(<span class="keywordtype">double</span>));
<a name="l00276"></a>00276
<a name="l00280"></a>00280 <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* <a class="code" href="classneuralpp_1_1Synapsis.html#5ba8a93a5741f4855390eb8a46e99435">getIn</a>();
<a name="l00281"></a>00281
<a name="l00285"></a>00285 <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* <a class="code" href="classneuralpp_1_1Synapsis.html#61c9a04e03291a01f44520cef143cbdd">getOut</a>();
<a name="l00286"></a>00286
<a name="l00291"></a>00291 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff" title="Set the weight of the synapsis.">setWeight</a>(<span class="keywordtype">double</span> w) <span class="keywordflow">throw</span>(InvalidSynapticalWeightException);
<a name="l00292"></a>00292
<a name="l00296"></a>00296 <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>* <a class="code" href="classneuralpp_1_1Synapsis.html#61c9a04e03291a01f44520cef143cbdd">getOut</a>();
<a name="l00297"></a>00297
<a name="l00302"></a>00302 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Synapsis.html#acee77d0fdf9889464ab5ed27beae0ff" title="Set the weight of the synapsis.">setWeight</a>(<span class="keywordtype">double</span> w);
<a name="l00303"></a>00303
<a name="l00309"></a>00309 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Synapsis.html#429ad5b25930faf436a9d725582802e1" title="It sets the delta (how much to change the weight after an update) of the synapsis...">setDelta</a>(<span class="keywordtype">double</span> d);
<a name="l00310"></a>00310
<a name="l00315"></a>00315 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#aa79c16ec6b59949e5d2f75a3f10d530" title="Return the weight of the synapsis.">getWeight</a>();
<a name="l00316"></a>00316
<a name="l00321"></a>00321 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#18f15b920609be8b818d43a0227aada5" title="Return the delta of the synapsis.">getDelta</a>();
<a name="l00322"></a>00322
<a name="l00327"></a>00327 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#2fe3e9ec97542f1476d8b9306aa09756" title="Get the delta of the synapsis at the previous iteration.">getPrevDelta</a>();
<a name="l00328"></a>00328
<a name="l00339"></a>00339 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#ecdb17182de791f7fdd417232e184350" title="Get the inertial momentum of a synapsis.">momentum</a> (<span class="keywordtype">int</span> N, <span class="keywordtype">int</span> x);
<a name="l00340"></a>00340 };
<a name="l00341"></a>00341
<a name="l00347"></a><a class="code" href="classneuralpp_1_1Neuron.html">00347</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a> {
<a name="l00348"></a><a class="code" href="classneuralpp_1_1Neuron.html#eec680c47272b2465e8d8a998c359853">00348</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#eec680c47272b2465e8d8a998c359853">actv_val</a>;
<a name="l00349"></a><a class="code" href="classneuralpp_1_1Neuron.html#da75259de98b1a893c736666af6bfdc3">00349</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#da75259de98b1a893c736666af6bfdc3">prop_val</a>;
<a name="l00350"></a>00350
<a name="l00351"></a><a class="code" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">00351</a> vector&lt; Synapsis &gt; <a class="code" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a>;
<a name="l00352"></a><a class="code" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">00352</a> vector&lt; Synapsis &gt; <a class="code" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a>;
<a name="l00353"></a>00353
<a name="l00354"></a>00354 double (*<a class="code" href="classneuralpp_1_1Neuron.html#198ddd0d11a26d0052d52b787d6a0df0">actv_f</a>)(double);
<a name="l00355"></a>00355 double (*<a class="code" href="classneuralpp_1_1Neuron.html#8b881889e40e9782c49b0efad2b1dde3">deriv</a>)(double);
<a name="l00356"></a>00356 <span class="keyword">public</span>:
<a name="l00362"></a>00362 <a class="code" href="classneuralpp_1_1Neuron.html#c877424a295478e3464046ea43c2a7ad" title="Constructor.">Neuron</a> (<span class="keywordtype">double</span> (*a)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span>(*d)(<span class="keywordtype">double</span>));
<a name="l00363"></a>00363
<a name="l00371"></a>00371 <a class="code" href="classneuralpp_1_1Neuron.html#c877424a295478e3464046ea43c2a7ad" title="Constructor.">Neuron</a> (vector&lt;Synapsis&gt; <a class="code" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a>, vector&lt;Synapsis&gt; <a class="code" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a>,
<a name="l00372"></a>00372 <span class="keywordtype">double</span> (*a)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span>(*d)(<span class="keywordtype">double</span>));
<a name="l00373"></a>00373
<a name="l00379"></a>00379 <a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; <a class="code" href="classneuralpp_1_1Neuron.html#29f2d9dcc4ca34f224d4dc39bb2f180a" title="Get the i-th synapsis connected on the input of the neuron.">synIn</a> (<span class="keywordtype">size_t</span> i);
<a name="l00298"></a>00298 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Synapsis.html#429ad5b25930faf436a9d725582802e1" title="It sets the delta (how much to change the weight after an update) of the synapsis...">setDelta</a>(<span class="keywordtype">double</span> d) <span class="keywordflow">throw</span>(InvalidSynapticalWeightException);
<a name="l00299"></a>00299
<a name="l00304"></a>00304 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#aa79c16ec6b59949e5d2f75a3f10d530" title="Return the weight of the synapsis.">getWeight</a>();
<a name="l00305"></a>00305
<a name="l00310"></a>00310 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#18f15b920609be8b818d43a0227aada5" title="Return the delta of the synapsis.">getDelta</a>();
<a name="l00311"></a>00311
<a name="l00316"></a>00316 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#2fe3e9ec97542f1476d8b9306aa09756" title="Get the delta of the synapsis at the previous iteration.">getPrevDelta</a>();
<a name="l00317"></a>00317
<a name="l00328"></a>00328 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Synapsis.html#ecdb17182de791f7fdd417232e184350" title="Get the inertial momentum of a synapsis.">momentum</a> (<span class="keywordtype">int</span> N, <span class="keywordtype">int</span> x);
<a name="l00329"></a>00329 };
<a name="l00330"></a>00330
<a name="l00336"></a><a class="code" href="classneuralpp_1_1Neuron.html">00336</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a> {
<a name="l00337"></a><a class="code" href="classneuralpp_1_1Neuron.html#eec680c47272b2465e8d8a998c359853">00337</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#eec680c47272b2465e8d8a998c359853">actv_val</a>;
<a name="l00338"></a><a class="code" href="classneuralpp_1_1Neuron.html#da75259de98b1a893c736666af6bfdc3">00338</a> <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#da75259de98b1a893c736666af6bfdc3">prop_val</a>;
<a name="l00339"></a>00339
<a name="l00340"></a><a class="code" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">00340</a> vector&lt; Synapsis &gt; <a class="code" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a>;
<a name="l00341"></a><a class="code" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">00341</a> vector&lt; Synapsis &gt; <a class="code" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a>;
<a name="l00342"></a>00342
<a name="l00343"></a>00343 double (*<a class="code" href="classneuralpp_1_1Neuron.html#198ddd0d11a26d0052d52b787d6a0df0">actv_f</a>)(double);
<a name="l00344"></a>00344
<a name="l00345"></a>00345 <span class="keyword">public</span>:
<a name="l00350"></a>00350 <a class="code" href="classneuralpp_1_1Neuron.html#9863a08b73bc97c8b514aca6c580ff7b" title="Constructor.">Neuron</a> (<span class="keywordtype">double</span> (*a)(<span class="keywordtype">double</span>));
<a name="l00351"></a>00351
<a name="l00358"></a>00358 <a class="code" href="classneuralpp_1_1Neuron.html#9863a08b73bc97c8b514aca6c580ff7b" title="Constructor.">Neuron</a> (vector&lt;Synapsis&gt; <a class="code" href="classneuralpp_1_1Neuron.html#ead827210fa18c2baae03927b2c798ff">in</a>, vector&lt;Synapsis&gt; <a class="code" href="classneuralpp_1_1Neuron.html#82a4297f84d6403e52a8386d26117b4f">out</a>,
<a name="l00359"></a>00359 <span class="keywordtype">double</span> (*a)(<span class="keywordtype">double</span>));
<a name="l00360"></a>00360
<a name="l00366"></a>00366 <a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; <a class="code" href="classneuralpp_1_1Neuron.html#29f2d9dcc4ca34f224d4dc39bb2f180a" title="Get the i-th synapsis connected on the input of the neuron.">synIn</a> (<span class="keywordtype">size_t</span> i);
<a name="l00367"></a>00367
<a name="l00373"></a>00373 <a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; <a class="code" href="classneuralpp_1_1Neuron.html#655f1637e1b754461413ac7fc2ffeebe" title="Get the i-th synapsis connected on the output of the neuron.">synOut</a> (<span class="keywordtype">size_t</span> i);
<a name="l00374"></a>00374
<a name="l00379"></a>00379 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#583ada6e1dd3f2e113415b4d89196e62" title="It pushes a new input synapsis.">push_in</a> (<a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; s);
<a name="l00380"></a>00380
<a name="l00386"></a>00386 <a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; <a class="code" href="classneuralpp_1_1Neuron.html#655f1637e1b754461413ac7fc2ffeebe" title="Get the i-th synapsis connected on the output of the neuron.">synOut</a> (<span class="keywordtype">size_t</span> i);
<a name="l00387"></a>00387
<a name="l00392"></a>00392 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#583ada6e1dd3f2e113415b4d89196e62" title="It pushes a new input synapsis.">push_in</a> (<a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; s);
<a name="l00393"></a>00393
<a name="l00398"></a>00398 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#bca65db84f56f9d40694bfbcd25812cb" title="It pushes a new output synapsis.">push_out</a> (<a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; s);
<a name="l00399"></a>00399
<a name="l00404"></a>00404 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#ddf00ffef030b27ed11901aad08822bd" title="Change the activation value of the neuron.">setActv</a> (<span class="keywordtype">double</span> a);
<a name="l00405"></a>00405
<a name="l00410"></a>00410 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#aa6e58f073a76b3481fea9115a4e6ea6" title="Change the propagation value of the neuron.">setProp</a> (<span class="keywordtype">double</span> p);
<a name="l00411"></a>00411
<a name="l00416"></a>00416 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#55993867179f0ac7d1e0e2c460ceb611" title="Get the activation value of the neuron.">getActv</a>();
<a name="l00417"></a>00417
<a name="l00422"></a>00422 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#57c022f82213f662e2a263fc134a3fc9" title="Get the propagation value of the neuron.">getProp</a>();
<a name="l00423"></a>00423
<a name="l00427"></a>00427 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#8b0ca61cd0e047c8691ab39aae56dbda" title="It propagates its activation value to the connected neurons.">propagate</a>();
<a name="l00428"></a>00428
<a name="l00433"></a>00433 <span class="keywordtype">size_t</span> <a class="code" href="classneuralpp_1_1Neuron.html#ad97f1a082d5f969eb4c69ab454ecfbb" title="Get the number of input synapsis for the neuron.">nIn</a>();
<a name="l00434"></a>00434
<a name="l00439"></a>00439 <span class="keywordtype">size_t</span> <a class="code" href="classneuralpp_1_1Neuron.html#fe458021e3b20d58dc608fb94ae2135b" title="Get the number of output synapsis for the neuron.">nOut</a>();
<a name="l00440"></a>00440
<a name="l00444"></a>00444 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#2e2ccb69277fc3d992a3a3f2360ed154" title="Remove input and output synapsis from a neuron.">synClear</a>();
<a name="l00445"></a>00445 };
<a name="l00446"></a>00446
<a name="l00452"></a><a class="code" href="classneuralpp_1_1Layer.html">00452</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a> {
<a name="l00453"></a><a class="code" href="classneuralpp_1_1Layer.html#855685c9da56b06b629e13a2f8c719ce">00453</a> vector&lt;Neuron&gt; <a class="code" href="classneuralpp_1_1Layer.html#855685c9da56b06b629e13a2f8c719ce">elements</a>;
<a name="l00454"></a>00454
<a name="l00455"></a>00455 void (*<a class="code" href="classneuralpp_1_1Layer.html#c023a15a16353d0b4f44060a159f550f">update_weights</a>)();
<a name="l00456"></a>00456 double (*<a class="code" href="classneuralpp_1_1Layer.html#824367da29f92253a027a7c5b4a4405e">actv_f</a>)(double);
<a name="l00457"></a>00457 double (*<a class="code" href="classneuralpp_1_1Layer.html#a0207b14ba80aaf03502749ecb7d23fa">deriv</a>)(double);
<a name="l00458"></a>00458
<a name="l00459"></a>00459 <span class="keyword">public</span>:
<a name="l00466"></a>00466 <a class="code" href="classneuralpp_1_1Layer.html#411a4dc8a1bb2fe44fe7a69fa50fd764" title="Constructor.">Layer</a> (<span class="keywordtype">size_t</span> sz, <span class="keywordtype">double</span> (*a)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span>(*d)(<span class="keywordtype">double</span>));
<a name="l00385"></a>00385 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#bca65db84f56f9d40694bfbcd25812cb" title="It pushes a new output synapsis.">push_out</a> (<a class="code" href="classneuralpp_1_1Synapsis.html" title="Class for managing synapsis.">Synapsis</a>&amp; s);
<a name="l00386"></a>00386
<a name="l00391"></a>00391 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#ddf00ffef030b27ed11901aad08822bd" title="Change the activation value of the neuron.">setActv</a> (<span class="keywordtype">double</span> a);
<a name="l00392"></a>00392
<a name="l00397"></a>00397 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#aa6e58f073a76b3481fea9115a4e6ea6" title="Change the propagation value of the neuron.">setProp</a> (<span class="keywordtype">double</span> p);
<a name="l00398"></a>00398
<a name="l00403"></a>00403 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#55993867179f0ac7d1e0e2c460ceb611" title="Get the activation value of the neuron.">getActv</a>();
<a name="l00404"></a>00404
<a name="l00409"></a>00409 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#57c022f82213f662e2a263fc134a3fc9" title="Get the propagation value of the neuron.">getProp</a>();
<a name="l00410"></a>00410
<a name="l00414"></a>00414 <span class="keywordtype">double</span> <a class="code" href="classneuralpp_1_1Neuron.html#8b0ca61cd0e047c8691ab39aae56dbda" title="It propagates its activation value to the connected neurons.">propagate</a>();
<a name="l00415"></a>00415
<a name="l00420"></a>00420 <span class="keywordtype">size_t</span> <a class="code" href="classneuralpp_1_1Neuron.html#ad97f1a082d5f969eb4c69ab454ecfbb" title="Get the number of input synapsis for the neuron.">nIn</a>();
<a name="l00421"></a>00421
<a name="l00426"></a>00426 <span class="keywordtype">size_t</span> <a class="code" href="classneuralpp_1_1Neuron.html#fe458021e3b20d58dc608fb94ae2135b" title="Get the number of output synapsis for the neuron.">nOut</a>();
<a name="l00427"></a>00427
<a name="l00431"></a>00431 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Neuron.html#2e2ccb69277fc3d992a3a3f2360ed154" title="Remove input and output synapsis from a neuron.">synClear</a>();
<a name="l00432"></a>00432 };
<a name="l00433"></a>00433
<a name="l00439"></a><a class="code" href="classneuralpp_1_1Layer.html">00439</a> <span class="keyword">class </span><a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a> {
<a name="l00440"></a><a class="code" href="classneuralpp_1_1Layer.html#855685c9da56b06b629e13a2f8c719ce">00440</a> vector&lt;Neuron&gt; <a class="code" href="classneuralpp_1_1Layer.html#855685c9da56b06b629e13a2f8c719ce">elements</a>;
<a name="l00441"></a>00441
<a name="l00442"></a>00442 void (*<a class="code" href="classneuralpp_1_1Layer.html#c023a15a16353d0b4f44060a159f550f">update_weights</a>)();
<a name="l00443"></a>00443 double (*<a class="code" href="classneuralpp_1_1Layer.html#824367da29f92253a027a7c5b4a4405e">actv_f</a>)(double);
<a name="l00444"></a>00444
<a name="l00445"></a>00445 <span class="keyword">public</span>:
<a name="l00451"></a>00451 <a class="code" href="classneuralpp_1_1Layer.html#fb08bddd85d36570dabfe915461f07c5" title="Constructor.">Layer</a> (<span class="keywordtype">size_t</span> sz, <span class="keywordtype">double</span> (*a)(<span class="keywordtype">double</span>));
<a name="l00452"></a>00452
<a name="l00459"></a>00459 <a class="code" href="classneuralpp_1_1Layer.html#fb08bddd85d36570dabfe915461f07c5" title="Constructor.">Layer</a> (vector&lt;Neuron&gt;&amp; neurons, <span class="keywordtype">double</span>(*a)(<span class="keywordtype">double</span>));
<a name="l00460"></a>00460
<a name="l00466"></a>00466 <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>&amp; <a class="code" href="classneuralpp_1_1Layer.html#45ff7554830558155c6fbce3b6827122" title="Redefinition for operator [].">operator[] </a>(<span class="keywordtype">size_t</span> i) <span class="keywordflow">throw</span>(NetworkIndexOutOfBoundsException);
<a name="l00467"></a>00467
<a name="l00475"></a>00475 <a class="code" href="classneuralpp_1_1Layer.html#411a4dc8a1bb2fe44fe7a69fa50fd764" title="Constructor.">Layer</a> (vector&lt;Neuron&gt;&amp; neurons, <span class="keywordtype">double</span>(*a)(<span class="keywordtype">double</span>), <span class="keywordtype">double</span>(*d)(<span class="keywordtype">double</span>));
<a name="l00476"></a>00476
<a name="l00482"></a>00482 <a class="code" href="classneuralpp_1_1Neuron.html" title="Class for managing neurons.">Neuron</a>&amp; <a class="code" href="classneuralpp_1_1Layer.html#45ff7554830558155c6fbce3b6827122" title="Redefinition for operator [].">operator[] </a>(<span class="keywordtype">size_t</span> i);
<a name="l00483"></a>00483
<a name="l00488"></a>00488 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#ac33444fde14633fa1ad4acb024ad150" title="It links a layer to another.">link</a> (<a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>&amp; l);
<a name="l00489"></a>00489
<a name="l00494"></a>00494 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#dbad95f635343a2998794113d7762cf7" title="It sets a vector of propagation values to all its neurons.">setProp</a> (vector&lt;double&gt;&amp; v);
<a name="l00495"></a>00495
<a name="l00500"></a>00500 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#98f79281b680b1d18fd91fa5794c0899" title="It sets a vector of activation values to all its neurons.">setActv</a> (vector&lt;double&gt;&amp; v);
<a name="l00472"></a>00472 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#ac33444fde14633fa1ad4acb024ad150" title="It links a layer to another.">link</a> (<a class="code" href="classneuralpp_1_1Layer.html" title="Class for managing layers of neurons.">Layer</a>&amp; l);
<a name="l00473"></a>00473
<a name="l00478"></a>00478 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#dbad95f635343a2998794113d7762cf7" title="It sets a vector of propagation values to all its neurons.">setProp</a> (vector&lt;double&gt;&amp; v);
<a name="l00479"></a>00479
<a name="l00484"></a>00484 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#98f79281b680b1d18fd91fa5794c0899" title="It sets a vector of activation values to all its neurons.">setActv</a> (vector&lt;double&gt;&amp; v);
<a name="l00485"></a>00485
<a name="l00489"></a>00489 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#fcfd306039dbaf91c9e2dcc8fc1f1ce1" title="It propagates its activation values to the output layers.">propagate</a>();
<a name="l00490"></a>00490
<a name="l00494"></a>00494 <span class="keywordtype">size_t</span> <a class="code" href="classneuralpp_1_1Layer.html#7ca71ed62fbe9c1e9c0fb6a8dcaf76f0">size</a>() <span class="keyword">const</span>;
<a name="l00495"></a>00495 };
<a name="l00496"></a>00496
<a name="l00497"></a><a class="code" href="structneuralpp_1_1netrecord.html">00497</a> <span class="keyword">struct </span><a class="code" href="structneuralpp_1_1netrecord.html">netrecord</a> {
<a name="l00498"></a><a class="code" href="structneuralpp_1_1netrecord.html#e1f480bfef05033accef40f77c09fa87">00498</a> <span class="keywordtype">int</span> <a class="code" href="structneuralpp_1_1netrecord.html#e1f480bfef05033accef40f77c09fa87">input_size</a>;
<a name="l00499"></a><a class="code" href="structneuralpp_1_1netrecord.html#3c1728ac66c37f6ac85c404d4f55552e">00499</a> <span class="keywordtype">int</span> hidden_size;
<a name="l00500"></a><a class="code" href="structneuralpp_1_1netrecord.html#95f2b0651dd3a0e5e7201ff354e401b4">00500</a> <span class="keywordtype">int</span> <a class="code" href="structneuralpp_1_1netrecord.html#95f2b0651dd3a0e5e7201ff354e401b4">output_size</a>;
<a name="l00501"></a>00501
<a name="l00505"></a>00505 <span class="keywordtype">void</span> <a class="code" href="classneuralpp_1_1Layer.html#fcfd306039dbaf91c9e2dcc8fc1f1ce1" title="It propagates its activation values to the output layers.">propagate</a>();
<a name="l00502"></a><a class="code" href="structneuralpp_1_1netrecord.html#ab0149ed5ea0694e88213a07cd4427d1">00502</a> <span class="keywordtype">int</span> <a class="code" href="structneuralpp_1_1netrecord.html#ab0149ed5ea0694e88213a07cd4427d1">epochs</a>;
<a name="l00503"></a><a class="code" href="structneuralpp_1_1netrecord.html#a4f793a39a40144e811fef4d3d2d2b30">00503</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1netrecord.html#a4f793a39a40144e811fef4d3d2d2b30">l_rate</a>;
<a name="l00504"></a><a class="code" href="structneuralpp_1_1netrecord.html#dcc44fde3f67058d26ef2d5cbd0904e6">00504</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1netrecord.html#dcc44fde3f67058d26ef2d5cbd0904e6">ex</a>;
<a name="l00505"></a>00505 };
<a name="l00506"></a>00506
<a name="l00510"></a>00510 <span class="keywordtype">size_t</span> <a class="code" href="classneuralpp_1_1Layer.html#c8d2f7513e5d40518f9dddfd1e3ddcc5">size</a>();
<a name="l00511"></a>00511 };
<a name="l00512"></a>00512
<a name="l00513"></a><a class="code" href="structneuralpp_1_1netrecord.html">00513</a> <span class="keyword">struct </span><a class="code" href="structneuralpp_1_1netrecord.html">netrecord</a> {
<a name="l00514"></a><a class="code" href="structneuralpp_1_1netrecord.html#e1f480bfef05033accef40f77c09fa87">00514</a> <span class="keywordtype">int</span> <a class="code" href="structneuralpp_1_1netrecord.html#e1f480bfef05033accef40f77c09fa87">input_size</a>;
<a name="l00515"></a><a class="code" href="structneuralpp_1_1netrecord.html#3c1728ac66c37f6ac85c404d4f55552e">00515</a> <span class="keywordtype">int</span> hidden_size;
<a name="l00516"></a><a class="code" href="structneuralpp_1_1netrecord.html#95f2b0651dd3a0e5e7201ff354e401b4">00516</a> <span class="keywordtype">int</span> <a class="code" href="structneuralpp_1_1netrecord.html#95f2b0651dd3a0e5e7201ff354e401b4">output_size</a>;
<a name="l00507"></a><a class="code" href="structneuralpp_1_1neuronrecord.html">00507</a> <span class="keyword">struct </span><a class="code" href="structneuralpp_1_1neuronrecord.html">neuronrecord</a> {
<a name="l00508"></a><a class="code" href="structneuralpp_1_1neuronrecord.html#30b298a95939b88b565fefc2dc57e89d">00508</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1neuronrecord.html#30b298a95939b88b565fefc2dc57e89d">prop</a>;
<a name="l00509"></a><a class="code" href="structneuralpp_1_1neuronrecord.html#15201b190584987255d81d4b7e773375">00509</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1neuronrecord.html#15201b190584987255d81d4b7e773375">actv</a>;
<a name="l00510"></a>00510 };
<a name="l00511"></a>00511
<a name="l00512"></a><a class="code" href="structneuralpp_1_1synrecord.html">00512</a> <span class="keyword">struct </span><a class="code" href="structneuralpp_1_1synrecord.html">synrecord</a> {
<a name="l00513"></a><a class="code" href="structneuralpp_1_1synrecord.html#81a7dbc97eecbf5bc85cac46373a78d2">00513</a> <span class="keywordtype">double</span> w;
<a name="l00514"></a><a class="code" href="structneuralpp_1_1synrecord.html#3a862082dfa0edffce84936818bab374">00514</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1synrecord.html#3a862082dfa0edffce84936818bab374">d</a>;
<a name="l00515"></a>00515 };
<a name="l00516"></a>00516 }
<a name="l00517"></a>00517
<a name="l00518"></a><a class="code" href="structneuralpp_1_1netrecord.html#ab0149ed5ea0694e88213a07cd4427d1">00518</a> <span class="keywordtype">int</span> <a class="code" href="structneuralpp_1_1netrecord.html#ab0149ed5ea0694e88213a07cd4427d1">epochs</a>;
<a name="l00519"></a><a class="code" href="structneuralpp_1_1netrecord.html#a4f793a39a40144e811fef4d3d2d2b30">00519</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1netrecord.html#a4f793a39a40144e811fef4d3d2d2b30">l_rate</a>;
<a name="l00520"></a><a class="code" href="structneuralpp_1_1netrecord.html#dcc44fde3f67058d26ef2d5cbd0904e6">00520</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1netrecord.html#dcc44fde3f67058d26ef2d5cbd0904e6">ex</a>;
<a name="l00521"></a>00521 };
<a name="l00522"></a>00522
<a name="l00523"></a><a class="code" href="structneuralpp_1_1neuronrecord.html">00523</a> <span class="keyword">struct </span><a class="code" href="structneuralpp_1_1neuronrecord.html">neuronrecord</a> {
<a name="l00524"></a><a class="code" href="structneuralpp_1_1neuronrecord.html#30b298a95939b88b565fefc2dc57e89d">00524</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1neuronrecord.html#30b298a95939b88b565fefc2dc57e89d">prop</a>;
<a name="l00525"></a><a class="code" href="structneuralpp_1_1neuronrecord.html#15201b190584987255d81d4b7e773375">00525</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1neuronrecord.html#15201b190584987255d81d4b7e773375">actv</a>;
<a name="l00526"></a>00526 };
<a name="l00527"></a>00527
<a name="l00528"></a><a class="code" href="structneuralpp_1_1synrecord.html">00528</a> <span class="keyword">struct </span><a class="code" href="structneuralpp_1_1synrecord.html">synrecord</a> {
<a name="l00529"></a><a class="code" href="structneuralpp_1_1synrecord.html#81a7dbc97eecbf5bc85cac46373a78d2">00529</a> <span class="keywordtype">double</span> w;
<a name="l00530"></a><a class="code" href="structneuralpp_1_1synrecord.html#3a862082dfa0edffce84936818bab374">00530</a> <span class="keywordtype">double</span> <a class="code" href="structneuralpp_1_1synrecord.html#3a862082dfa0edffce84936818bab374">d</a>;
<a name="l00531"></a>00531 };
<a name="l00532"></a>00532 }
<a name="l00533"></a>00533
<a name="l00534"></a>00534 <span class="preprocessor">#endif</span>
<a name="l00535"></a>00535 <span class="preprocessor"></span><span class="comment">//#endif</span>
<a name="l00536"></a>00536
<a name="l00518"></a>00518 <span class="comment">//#endif</span>
<a name="l00519"></a>00519 <span class="preprocessor">#endif</span>
<a name="l00520"></a>00520 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -19,8 +19,6 @@
<h1>neural++.hpp File Reference</h1><code>#include &lt;vector&gt;</code><br>
<code>#include &lt;string&gt;</code><br>
<code>#include &lt;cmath&gt;</code><br>
<code>#include &lt;ctime&gt;</code><br>
<code>#include &lt;cstdio&gt;</code><br>
<code>#include &quot;<a class="el" href="neural_09_09__exception_8hpp-source.html">neural++_exception.hpp</a>&quot;</code><br>
<p>
@ -49,12 +47,15 @@
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structneuralpp_1_1synrecord.html">neuralpp::synrecord</a></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="neural_09_09_8hpp.html#839a9222721835f53c5b248241f535f4">RAND</a>&nbsp;&nbsp;&nbsp;( abs( sin(rand()) ) )</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="neural_09_09_8hpp.html#839a9222721835f53c5b248241f535f4">RAND</a>&nbsp;&nbsp;&nbsp;(double) ( (rand() / (RAND_MAX/2)) - 1)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default rand value: |sin(rand)|, always &gt;= 0 and &lt;= 1. <a href="#839a9222721835f53c5b248241f535f4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="neural_09_09_8hpp.html#05e2bb5b9fc32f0b6b4d84fe43177d72">BETA0</a>&nbsp;&nbsp;&nbsp;0.7</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="neural_09_09_8hpp.html#05e2bb5b9fc32f0b6b4d84fe43177d72">BETA0</a>&nbsp;&nbsp;&nbsp;0.8</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initial value for the inertial momentum of the synapses. <a href="#05e2bb5b9fc32f0b6b4d84fe43177d72"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceneuralpp.html#43c8197cc83f65fa9676386579671aec">neuralpp::df</a> (double(*f)(double), double x)</td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="05e2bb5b9fc32f0b6b4d84fe43177d72"></a><!-- doxytag: member="neural++.hpp::BETA0" ref="05e2bb5b9fc32f0b6b4d84fe43177d72" args="" -->
@ -62,7 +63,7 @@
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BETA0&nbsp;&nbsp;&nbsp;0.7 </td>
<td class="memname">#define BETA0&nbsp;&nbsp;&nbsp;0.8 </td>
</tr>
</table>
</div>
@ -79,7 +80,7 @@ Initial value for the inertial momentum of the synapses.
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define RAND&nbsp;&nbsp;&nbsp;( abs( sin(rand()) ) ) </td>
<td class="memname">#define RAND&nbsp;&nbsp;&nbsp;(double) ( (rand() / (RAND_MAX/2)) - 1) </td>
</tr>
</table>
</div>
@ -92,7 +93,7 @@ Default rand value: |sin(rand)|, always &gt;= 0 and &lt;= 1.
</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -43,18 +43,36 @@
<a name="l00031"></a>00031 <span class="keyword">const</span> <span class="keywordtype">char</span>* what() <span class="keyword">const</span> throw() { <span class="keywordflow">return</span> <span class="stringliteral">"Attempt to load a neural network from an invalid network file"</span>; }
<a name="l00032"></a>00032 };
<a name="l00033"></a>00033
<a name="l00038"></a>00038 <span class="keyword">class </span>InvalidXMLException : <span class="keyword">public</span> std::exception {
<a name="l00039"></a>00039 <span class="keyword">public</span>:
<a name="l00040"></a>00040 InvalidXMLException() {}
<a name="l00041"></a>00041 <span class="keyword">const</span> <span class="keywordtype">char</span>* what() <span class="keyword">const</span> throw() { <span class="keywordflow">return</span> <span class="stringliteral">"Attempt to load an invalid XML file"</span>; }
<a name="l00042"></a>00042 };
<a name="l00043"></a>00043 }
<a name="l00039"></a>00039 <span class="keyword">class </span>NetworkFileWriteException : <span class="keyword">public</span> std::exception {
<a name="l00040"></a>00040 <span class="keyword">public</span>:
<a name="l00041"></a>00041 NetworkFileWriteException() {}
<a name="l00042"></a>00042 <span class="keyword">const</span> <span class="keywordtype">char</span>* what() <span class="keyword">const</span> throw() { <span class="keywordflow">return</span> <span class="stringliteral">"There was an error while writing the network file"</span>; }
<a name="l00043"></a>00043 };
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00049"></a>00049 <span class="keyword">class </span>InvalidXMLException : <span class="keyword">public</span> std::exception {
<a name="l00050"></a>00050 <span class="keyword">public</span>:
<a name="l00051"></a>00051 InvalidXMLException() {}
<a name="l00052"></a>00052 <span class="keyword">const</span> <span class="keywordtype">char</span>* what() <span class="keyword">const</span> throw() { <span class="keywordflow">return</span> <span class="stringliteral">"Attempt to load an invalid XML file"</span>; }
<a name="l00053"></a>00053 };
<a name="l00054"></a>00054
<a name="l00060"></a>00060 <span class="keyword">class </span>NetworkIndexOutOfBoundsException : <span class="keyword">public</span> std::exception {
<a name="l00061"></a>00061 <span class="keyword">public</span>:
<a name="l00062"></a>00062 NetworkIndexOutOfBoundsException() {}
<a name="l00063"></a>00063 <span class="keyword">const</span> <span class="keywordtype">char</span>* what() <span class="keyword">const</span> throw() { <span class="keywordflow">return</span> <span class="stringliteral">"Attempt to access a non-existing neuron"</span>; }
<a name="l00064"></a>00064 };
<a name="l00065"></a>00065
<a name="l00071"></a>00071 <span class="keyword">class </span>InvalidSynapticalWeightException : <span class="keyword">public</span> std::exception {
<a name="l00072"></a>00072 <span class="keyword">public</span>:
<a name="l00073"></a>00073 InvalidSynapticalWeightException() {}
<a name="l00074"></a>00074 <span class="keyword">const</span> <span class="keywordtype">char</span>* what() <span class="keyword">const</span> throw() { <span class="keywordflow">return</span> <span class="stringliteral">"Attempt to set an invalid weight for the synapsis"</span>; }
<a name="l00075"></a>00075 };
<a name="l00076"></a>00076 }
<a name="l00077"></a>00077
<a name="l00078"></a>00078 <span class="preprocessor">#endif</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -22,7 +22,7 @@
<tr><td></td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -31,7 +31,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1ConvertEncoding.html#8ab5d602610c46eb26d0fbf8a39b2da8">strFromEncoding</a></td><td><a class="el" href="structCMarkup_1_1ConvertEncoding.html">CMarkup::ConvertEncoding</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1ConvertEncoding.html#cc2420305e7cfa6c9d18f7ce9daa4313">strToEncoding</a></td><td><a class="el" href="structCMarkup_1_1ConvertEncoding.html">CMarkup::ConvertEncoding</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -197,7 +197,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -47,7 +47,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1ElemPos.html#853d5e4a5c6b03643e7210671385896c">StartContent</a>() const </td><td><a class="el" href="structCMarkup_1_1ElemPos.html">CMarkup::ElemPos</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1ElemPos.html#987926f5677976e6288e5b4c3a224d96">StartTagLen</a>() const </td><td><a class="el" href="structCMarkup_1_1ElemPos.html">CMarkup::ElemPos</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -527,7 +527,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -33,7 +33,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1FilePos.html#b507cbd49031186d4b3fbf7d2d009c75">strEncoding</a></td><td><a class="el" href="structCMarkup_1_1FilePos.html">CMarkup::FilePos</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1FilePos.html#62db77f82233f3244272eb973a9ecfc8">strIOResult</a></td><td><a class="el" href="structCMarkup_1_1FilePos.html">CMarkup::FilePos</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -195,7 +195,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -31,7 +31,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1NodePos.html#c1939dd0ed1d2ecb35eb35bd2e88f69c">nStart</a></td><td><a class="el" href="structCMarkup_1_1NodePos.html">CMarkup::NodePos</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1NodePos.html#b9b37d8614b6980a935157199558c261">strMeta</a></td><td><a class="el" href="structCMarkup_1_1NodePos.html">CMarkup::NodePos</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -176,7 +176,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -36,7 +36,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1NodeStack.html#4e9aad88e12b7bbabdbb3fd65fc51585">TopIndex</a>()</td><td><a class="el" href="structCMarkup_1_1NodeStack.html">CMarkup::NodeStack</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1NodeStack.html#6bd62bb0b4c4596016a00eade46cd5ca">~NodeStack</a>()</td><td><a class="el" href="structCMarkup_1_1NodeStack.html">CMarkup::NodeStack</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -309,7 +309,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -37,7 +37,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1PosArray.html#0310976aa8e777cb84ab02ddbae8864c">SegsUsed</a>() const </td><td><a class="el" href="structCMarkup_1_1PosArray.html">CMarkup::PosArray</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1PosArray.html#9f26a70cee21e757fe372201c57fc117">~PosArray</a>()</td><td><a class="el" href="structCMarkup_1_1PosArray.html">CMarkup::PosArray</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -316,7 +316,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -32,7 +32,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1SavedPos.html#28ed16429117003133c33fa8fcaa7924bc202c266163ba746501ff656c189bf3">SPM_USED</a> enum value</td><td><a class="el" href="structCMarkup_1_1SavedPos.html">CMarkup::SavedPos</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1SavedPos.html#3613f5e8854f961ed02173d22099db4c">strName</a></td><td><a class="el" href="structCMarkup_1_1SavedPos.html">CMarkup::SavedPos</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -145,7 +145,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -28,7 +28,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1SavedPosMap.html#681e409f964bbd86a088358dffaeb808">SavedPosMap</a>(int nSize)</td><td><a class="el" href="structCMarkup_1_1SavedPosMap.html">CMarkup::SavedPosMap</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1SavedPosMap.html#b3a7ef305893ba4b6752dea003997c96">~SavedPosMap</a>()</td><td><a class="el" href="structCMarkup_1_1SavedPosMap.html">CMarkup::SavedPosMap</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -123,7 +123,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -28,7 +28,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1SavedPosMapArray.html#0fca988b3417d41ccf3e2b3e8fef7483">SavedPosMapArray</a>()</td><td><a class="el" href="structCMarkup_1_1SavedPosMapArray.html">CMarkup::SavedPosMapArray</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1SavedPosMapArray.html#6be57f9ebe160aebb464957caa30ddd6">~SavedPosMapArray</a>()</td><td><a class="el" href="structCMarkup_1_1SavedPosMapArray.html">CMarkup::SavedPosMapArray</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -129,7 +129,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -36,7 +36,7 @@
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1TokenPos.html#c3a37f7294cd763aed0f37749095d3db">StrNIACmp</a>(MCD_PCSZ p1, MCD_PCSZ p2, int n)</td><td><a class="el" href="structCMarkup_1_1TokenPos.html">CMarkup::TokenPos</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structCMarkup_1_1TokenPos.html#797a3f5d9664c52971cf210166c3636a">TokenPos</a>(MCD_CSTR sz, int n)</td><td><a class="el" href="structCMarkup_1_1TokenPos.html">CMarkup::TokenPos</a></td><td><code> [inline]</code></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -314,7 +314,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -29,7 +29,7 @@
<tr class="memlist"><td><a class="el" href="structMCD__CSTR.html#69c3b0c4b7d049b0eaadcc5822f647ac">operator MCD_PCSZ</a>() const </td><td><a class="el" href="structMCD__CSTR.html">MCD_CSTR</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="structMCD__CSTR.html#98868bd66f13bc4be31eab000d45335e">pcsz</a></td><td><a class="el" href="structMCD__CSTR.html">MCD_CSTR</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -148,7 +148,7 @@
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Markup_8h-source.html">Markup.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -30,7 +30,7 @@
<tr class="memlist"><td><a class="el" href="structneuralpp_1_1netrecord.html#a4f793a39a40144e811fef4d3d2d2b30">l_rate</a></td><td><a class="el" href="structneuralpp_1_1netrecord.html">neuralpp::netrecord</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structneuralpp_1_1netrecord.html#95f2b0651dd3a0e5e7201ff354e401b4">output_size</a></td><td><a class="el" href="structneuralpp_1_1netrecord.html">neuralpp::netrecord</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -138,7 +138,7 @@
<hr>The documentation for this struct 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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -26,7 +26,7 @@
<tr class="memlist"><td><a class="el" href="structneuralpp_1_1neuronrecord.html#15201b190584987255d81d4b7e773375">actv</a></td><td><a class="el" href="structneuralpp_1_1neuronrecord.html">neuralpp::neuronrecord</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structneuralpp_1_1neuronrecord.html#30b298a95939b88b565fefc2dc57e89d">prop</a></td><td><a class="el" href="structneuralpp_1_1neuronrecord.html">neuralpp::neuronrecord</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -70,7 +70,7 @@
<hr>The documentation for this struct 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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -26,7 +26,7 @@
<tr class="memlist"><td><a class="el" href="structneuralpp_1_1synrecord.html#3a862082dfa0edffce84936818bab374">d</a></td><td><a class="el" href="structneuralpp_1_1synrecord.html">neuralpp::synrecord</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="structneuralpp_1_1synrecord.html#81a7dbc97eecbf5bc85cac46373a78d2">w</a></td><td><a class="el" href="structneuralpp_1_1synrecord.html">neuralpp::synrecord</a></td><td></td></tr>
</table></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Aug 9 11:11:18 2009 for Neural++ by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -70,7 +70,7 @@
<hr>The documentation for this struct 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&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Sat Aug 15 02:56:02 2009 for Neural++ by&nbsp;
<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>

View File

@ -8,11 +8,11 @@ Class for managing layers of neurons.
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item
{\bf Layer} (size\_\-t sz, double($\ast$a)(double), double($\ast$d)(double))
{\bf Layer} (size\_\-t sz, double($\ast$a)(double))
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
{\bf Layer} (vector$<$ {\bf Neuron} $>$ \&neurons, double($\ast$a)(double), double($\ast$d)(double))
{\bf Layer} (vector$<$ {\bf Neuron} $>$ \&neurons, double($\ast$a)(double))
\begin{CompactList}\small\item\em Alternative constructor. \item\end{CompactList}\item
{\bf Neuron} \& {\bf operator[$\,$]} (size\_\-t i)
{\bf Neuron} \& {\bf operator[$\,$]} (size\_\-t i) throw (NetworkIndexOutOfBoundsException)
\begin{CompactList}\small\item\em Redefinition for operator []. \item\end{CompactList}\item
void {\bf link} ({\bf Layer} \&l)
\begin{CompactList}\small\item\em It links a layer to another. \item\end{CompactList}\item
@ -22,7 +22,7 @@ void {\bf setActv} (vector$<$ double $>$ \&v)
\begin{CompactList}\small\item\em It sets a vector of activation values to all its neurons. \item\end{CompactList}\item
void {\bf propagate} ()
\begin{CompactList}\small\item\em It propagates its activation values to the output layers. \item\end{CompactList}\item
size\_\-t {\bf size} ()
size\_\-t {\bf size} () const
\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
@ -32,8 +32,6 @@ vector$<$ {\bf Neuron} $>$ {\bf elements}
void($\ast$ {\bf update\_\-weights} )()
\item
double($\ast$ {\bf actv\_\-f} )(double)
\item
double($\ast$ {\bf deriv} )(double)
\end{CompactItemize}
@ -45,7 +43,7 @@ Don't use this class directly unless you know what you're doing, use \doxyref{Ne
\subsection{Constructor \& Destructor Documentation}
\index{neuralpp::Layer@{neuralpp::Layer}!Layer@{Layer}}
\index{Layer@{Layer}!neuralpp::Layer@{neuralpp::Layer}}
\subsubsection[Layer]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Layer::Layer (size\_\-t {\em sz}, \/ double($\ast$)(double) {\em a}, \/ double($\ast$)(double) {\em d})}\label{classneuralpp_1_1Layer_411a4dc8a1bb2fe44fe7a69fa50fd764}
\subsubsection[Layer]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Layer::Layer (size\_\-t {\em sz}, \/ double($\ast$)(double) {\em a})}\label{classneuralpp_1_1Layer_fb08bddd85d36570dabfe915461f07c5}
Constructor.
@ -53,11 +51,11 @@ Constructor.
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sz}]Size of the layer \item[{\em a}]Activation function \item[{\em d}]Its derivate \end{description}
\item[{\em sz}]Size of the layer \item[{\em a}]Activation function \end{description}
\end{Desc}
\index{neuralpp::Layer@{neuralpp::Layer}!Layer@{Layer}}
\index{Layer@{Layer}!neuralpp::Layer@{neuralpp::Layer}}
\subsubsection[Layer]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Layer::Layer (vector$<$ {\bf Neuron} $>$ \& {\em neurons}, \/ double($\ast$)(double) {\em a}, \/ double($\ast$)(double) {\em d})}\label{classneuralpp_1_1Layer_117d1c3b481641816e80ea36826d2107}
\subsubsection[Layer]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Layer::Layer (vector$<$ {\bf Neuron} $>$ \& {\em neurons}, \/ double($\ast$)(double) {\em a})}\label{classneuralpp_1_1Layer_609ed16b8d79dc384b01ba7d16b72bd1}
Alternative constructor.
@ -65,14 +63,14 @@ Alternative constructor.
It directly gets a vector of neurons to build the layer \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em neurons}]Vector of neurons to be included in the layer \item[{\em a}]Activation function \item[{\em d}]Its derivate \end{description}
\item[{\em neurons}]Vector of neurons to be included in the layer \item[{\em a}]Activation function \end{description}
\end{Desc}
\subsection{Member Function Documentation}
\index{neuralpp::Layer@{neuralpp::Layer}!operator[]@{operator[]}}
\index{operator[]@{operator[]}!neuralpp::Layer@{neuralpp::Layer}}
\subsubsection[operator[]]{\setlength{\rightskip}{0pt plus 5cm}{\bf Neuron}\& neuralpp::Layer::operator[$\,$] (size\_\-t {\em i})}\label{classneuralpp_1_1Layer_45ff7554830558155c6fbce3b6827122}
\subsubsection[operator[]]{\setlength{\rightskip}{0pt plus 5cm}{\bf Neuron}\& neuralpp::Layer::operator[$\,$] (size\_\-t {\em i}) throw (NetworkIndexOutOfBoundsException)}\label{classneuralpp_1_1Layer_45ff7554830558155c6fbce3b6827122}
Redefinition for operator [].
@ -129,7 +127,7 @@ It propagates its activation values to the output layers.
\index{neuralpp::Layer@{neuralpp::Layer}!size@{size}}
\index{size@{size}!neuralpp::Layer@{neuralpp::Layer}}
\subsubsection[size]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t neuralpp::Layer::size ()}\label{classneuralpp_1_1Layer_c8d2f7513e5d40518f9dddfd1e3ddcc5}
\subsubsection[size]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t neuralpp::Layer::size () const}\label{classneuralpp_1_1Layer_7ca71ed62fbe9c1e9c0fb6a8dcaf76f0}
\begin{Desc}
@ -152,11 +150,6 @@ It propagates its activation values to the output layers.
\subsubsection[actv\_\-f]{\setlength{\rightskip}{0pt plus 5cm}double($\ast$ {\bf neuralpp::Layer::actv\_\-f})(double)\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1Layer_824367da29f92253a027a7c5b4a4405e}
\index{neuralpp::Layer@{neuralpp::Layer}!deriv@{deriv}}
\index{deriv@{deriv}!neuralpp::Layer@{neuralpp::Layer}}
\subsubsection[deriv]{\setlength{\rightskip}{0pt plus 5cm}double($\ast$ {\bf neuralpp::Layer::deriv})(double)\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1Layer_a0207b14ba80aaf03502749ecb7d23fa}
The documentation for this class was generated from the following file:\begin{CompactItemize}

View File

@ -19,15 +19,15 @@ enum {\bf source} \{ {\bf file},
\begin{CompactList}\small\item\em Empty constructor for the class - it just makes nothing. \item\end{CompactList}\item
{\bf NeuralNet} (size\_\-t in\_\-size, size\_\-t hidden\_\-size, size\_\-t out\_\-size, double l, int e)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
{\bf NeuralNet} (const char $\ast$file) throw (NetworkFileNotFoundException)
{\bf NeuralNet} (const string file) throw (NetworkFileNotFoundException)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
{\bf NeuralNet} (size\_\-t in\_\-size, size\_\-t hidden\_\-size, size\_\-t out\_\-size, double($\ast$actv)(double), double($\ast${\bf deriv})(double), double l, int e)
{\bf NeuralNet} (size\_\-t in\_\-size, size\_\-t hidden\_\-size, size\_\-t out\_\-size, double($\ast$actv)(double), double l, int e)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
double {\bf getOutput} ()
double {\bf getOutput} () const
\begin{CompactList}\small\item\em It gets the output of the network (note: the layer output should contain an only neuron). \item\end{CompactList}\item
vector$<$ double $>$ {\bf getOutputs} ()
\begin{CompactList}\small\item\em It gets the output of the network in case the output layer contains more neurons. \item\end{CompactList}\item
double {\bf expected} ()
double {\bf expected} () const
\begin{CompactList}\small\item\em It gets the value expected. \item\end{CompactList}\item
void {\bf setExpected} (double {\bf ex})
\begin{CompactList}\small\item\em It sets the value you expect from your network. \item\end{CompactList}\item
@ -39,9 +39,9 @@ void {\bf setInput} (vector$<$ double $>$ \&v)
\begin{CompactList}\small\item\em It sets the input for the network. \item\end{CompactList}\item
void {\bf link} ()
\begin{CompactList}\small\item\em It links the layers of the network (input, hidden, output). \item\end{CompactList}\item
bool {\bf save} (const char $\ast$fname)
void {\bf save} (const char $\ast$fname) throw (NetworkFileWriteException)
\begin{CompactList}\small\item\em Save a trained neural network to a binary file. \item\end{CompactList}\item
void {\bf train} (string xml, {\bf source} xrc) throw (InvalidXMLException)
void {\bf train} (string xml, {\bf source} src) throw (InvalidXMLException)
\begin{CompactList}\small\item\em Train a network using a training set loaded from an XML file. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
@ -54,6 +54,15 @@ static string {\bf XMLFromSet} (int id, string set)
\begin{CompactList}\small\item\em Get a training set from a string and copies it to an XML For example, these strings could be training sets for making sums: \char`\"{}2,3;5\char`\"{} - \char`\"{}5,6;11\char`\"{} - \char`\"{}2,2;4\char`\"{} - \char`\"{}4,5:9\char`\"{} This method called on the first string will return an XML such this: '$<$training id=\char`\"{}0\char`\"{}$>$$<$input id=\char`\"{}0\char`\"{}$>$2$<$/input$>$$<$input id=\char`\"{}1\char`\"{}$>$3$<$/input$>$$<$output id=\char`\"{}0\char`\"{}$>$5$<$/output$>$ \&lt/training$>$'. \item\end{CompactList}\item
static void {\bf closeXML} (string \&xml)
\begin{CompactList}\small\item\em Closes an open XML document generated by \char`\"{}initXML\char`\"{} and \char`\"{}XMLFromSet\char`\"{}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item
{\bf Layer} $\ast$ {\bf input}
\item
{\bf Layer} $\ast$ {\bf hidden}
\item
{\bf Layer} $\ast$ {\bf output}
\end{CompactItemize}
\subsection*{Private Member Functions}
\begin{CompactItemize}
\item
@ -61,8 +70,8 @@ void {\bf updateWeights} ()
\begin{CompactList}\small\item\em It updates the weights of the net's synapsis through back-propagation. \item\end{CompactList}\item
void {\bf commitChanges} ({\bf Layer} $\ast$l)
\begin{CompactList}\small\item\em It commits the changes made by \doxyref{updateWeights()}{p.}{classneuralpp_1_1NeuralNet_94169c89a7cd47122ab5dbf1d5c5e108} to the layer l. \item\end{CompactList}\item
double {\bf error} (double {\bf ex})
\begin{CompactList}\small\item\em It get the error made on the expected result as $|$v-v'$|$/v. \item\end{CompactList}\end{CompactItemize}
double {\bf error} (double {\bf ex}) const
\begin{CompactList}\small\item\em Get the error made on the expected result as $|$v-v'$|$/v. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item
@ -74,16 +83,8 @@ double {\bf l\_\-rate}
\item
double {\bf ex}
\item
{\bf Layer} $\ast$ {\bf input}
\item
{\bf Layer} $\ast$ {\bf hidden}
\item
{\bf Layer} $\ast$ {\bf output}
\item
double($\ast$ {\bf actv\_\-f} )(double)
\begin{CompactList}\small\item\em Private pointer to function, containing the function to be used as activation function. \item\end{CompactList}\item
double($\ast$ {\bf deriv} )(double)
\begin{CompactList}\small\item\em Private pointer to function, containing the function to be used as derivate of the activation function. \item\end{CompactList}\end{CompactItemize}
\begin{CompactList}\small\item\em Private pointer to function, containing the function to be used as activation function. \item\end{CompactList}\end{CompactItemize}
\subsection{Detailed Description}
@ -133,7 +134,7 @@ Constructor.
\end{Desc}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!NeuralNet@{NeuralNet}}
\index{NeuralNet@{NeuralNet}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[NeuralNet]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::NeuralNet::NeuralNet (const char $\ast$ {\em file}) throw (NetworkFileNotFoundException)}\label{classneuralpp_1_1NeuralNet_88380cb002edcccf11b59f6d3f6c94c9}
\subsubsection[NeuralNet]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::NeuralNet::NeuralNet (const string {\em file}) throw (NetworkFileNotFoundException)}\label{classneuralpp_1_1NeuralNet_7fc7fc3e3220c138ffa5356fef6b9757}
Constructor.
@ -141,7 +142,7 @@ Constructor.
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em file}]Binary file containing a neural network previously saved by \doxyref{save()}{p.}{classneuralpp_1_1NeuralNet_5db8d6ba4785f732da6e642b4f8f11a0} method \end{description}
\item[{\em file}]Binary file containing a neural network previously saved by \doxyref{save()}{p.}{classneuralpp_1_1NeuralNet_fdf94c276720c25e565cac834fe8a407} method \end{description}
\end{Desc}
\begin{Desc}
\item[Exceptions:]
@ -150,7 +151,7 @@ Constructor.
\end{Desc}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!NeuralNet@{NeuralNet}}
\index{NeuralNet@{NeuralNet}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[NeuralNet]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::NeuralNet::NeuralNet (size\_\-t {\em in\_\-size}, \/ size\_\-t {\em hidden\_\-size}, \/ size\_\-t {\em out\_\-size}, \/ double($\ast$)(double) {\em actv}, \/ double($\ast$)(double) {\em deriv}, \/ double {\em l}, \/ int {\em e})}\label{classneuralpp_1_1NeuralNet_b4b261f7f7fa93c45855288fd66cfdca}
\subsubsection[NeuralNet]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::NeuralNet::NeuralNet (size\_\-t {\em in\_\-size}, \/ size\_\-t {\em hidden\_\-size}, \/ size\_\-t {\em out\_\-size}, \/ double($\ast$)(double) {\em actv}, \/ double {\em l}, \/ int {\em e})}\label{classneuralpp_1_1NeuralNet_0c16df2e0701503052c63749930b238e}
Constructor.
@ -158,7 +159,7 @@ Constructor.
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em in\_\-size}]Size of the input layer \item[{\em hidden\_\-size}]Size of the hidden layer \item[{\em out\_\-size}]Size of the output layer \item[{\em actv}]Activation function to use (default: f(x)=x) \item[{\em deriv}]Derivate for the activation function to use (default: f'(x)=1) \item[{\em l}]learn rate (get it after doing some experiments, but generally try to keep its value quite low to be more accurate) \item[{\em e}]Epochs (cycles) to execute (the most you execute, the most the network can be accurate for its purpose) \end{description}
\item[{\em in\_\-size}]Size of the input layer \item[{\em hidden\_\-size}]Size of the hidden layer \item[{\em out\_\-size}]Size of the output layer \item[{\em actv}]Activation function to use (default: f(x)=x) \item[{\em l}]learn rate (get it after doing some experiments, but generally try to keep its value quite low to be more accurate) \item[{\em e}]Epochs (cycles) to execute (the most you execute, the most the network can be accurate for its purpose) \end{description}
\end{Desc}
@ -184,10 +185,10 @@ In-class use only \begin{Desc}
\end{Desc}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!error@{error}}
\index{error@{error}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[error]{\setlength{\rightskip}{0pt plus 5cm}double neuralpp::NeuralNet::error (double {\em ex})\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_8a140d28e6dd4097470c7c138801ad01}
\subsubsection[error]{\setlength{\rightskip}{0pt plus 5cm}double neuralpp::NeuralNet::error (double {\em ex}) const\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_0616c51404efaca2714e37dd7478997e}
It get the error made on the expected result as $|$v-v'$|$/v.
Get the error made on the expected result as $|$v-v'$|$/v.
\begin{Desc}
\item[Parameters:]
@ -198,7 +199,7 @@ It get the error made on the expected result as $|$v-v'$|$/v.
\item[Returns:]Mean error \end{Desc}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!getOutput@{getOutput}}
\index{getOutput@{getOutput}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[getOutput]{\setlength{\rightskip}{0pt plus 5cm}double neuralpp::NeuralNet::getOutput ()}\label{classneuralpp_1_1NeuralNet_7de7ee318eeb791d21a01e9e9e0e8c5a}
\subsubsection[getOutput]{\setlength{\rightskip}{0pt plus 5cm}double neuralpp::NeuralNet::getOutput () const}\label{classneuralpp_1_1NeuralNet_961dce8913264bf64c899dce4e25f810}
It gets the output of the network (note: the layer output should contain an only neuron).
@ -216,7 +217,7 @@ It gets the output of the network in case the output layer contains more neurons
\item[Returns:]A vector containing the output values of the network \end{Desc}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!expected@{expected}}
\index{expected@{expected}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[expected]{\setlength{\rightskip}{0pt plus 5cm}double neuralpp::NeuralNet::expected ()}\label{classneuralpp_1_1NeuralNet_423fd38a61d79905dcc12da84c805114}
\subsubsection[expected]{\setlength{\rightskip}{0pt plus 5cm}double neuralpp::NeuralNet::expected () const}\label{classneuralpp_1_1NeuralNet_562dfe9fb8d73bf25a23ce608451d3aa}
It gets the value expected.
@ -270,7 +271,7 @@ It links the layers of the network (input, hidden, output).
Don't use unless you exactly know what you're doing, it is already called by the constructor \index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!save@{save}}
\index{save@{save}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[save]{\setlength{\rightskip}{0pt plus 5cm}bool neuralpp::NeuralNet::save (const char $\ast$ {\em fname})}\label{classneuralpp_1_1NeuralNet_5db8d6ba4785f732da6e642b4f8f11a0}
\subsubsection[save]{\setlength{\rightskip}{0pt plus 5cm}void neuralpp::NeuralNet::save (const char $\ast$ {\em fname}) throw (NetworkFileWriteException)}\label{classneuralpp_1_1NeuralNet_fdf94c276720c25e565cac834fe8a407}
Save a trained neural network to a binary file.
@ -280,9 +281,14 @@ Save a trained neural network to a binary file.
\begin{description}
\item[{\em fname}]Binary file where you're going to save your network \end{description}
\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em NetworkFileWriteException}]When you get an error writing the network's information to a file \end{description}
\end{Desc}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!train@{train}}
\index{train@{train}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[train]{\setlength{\rightskip}{0pt plus 5cm}void neuralpp::NeuralNet::train (string {\em xml}, \/ {\bf source} {\em xrc}) throw (InvalidXMLException)}\label{classneuralpp_1_1NeuralNet_e8b8741d28bec1354db555eabe418cb6}
\subsubsection[train]{\setlength{\rightskip}{0pt plus 5cm}void neuralpp::NeuralNet::train (string {\em xml}, \/ {\bf source} {\em src}) throw (InvalidXMLException)}\label{classneuralpp_1_1NeuralNet_ead4bdef0602a5cadbe3beb685e01f5f}
Train a network using a training set loaded from an XML file.
@ -372,21 +378,6 @@ Closes an open XML document generated by \char`\"{}initXML\char`\"{} and \char`\
\subsubsection[ex]{\setlength{\rightskip}{0pt plus 5cm}double {\bf neuralpp::NeuralNet::ex}\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_261f5f68fcc5be54250cfa03945266dd}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!input@{input}}
\index{input@{input}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[input]{\setlength{\rightskip}{0pt plus 5cm}{\bf Layer}$\ast$ {\bf neuralpp::NeuralNet::input}\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_e2b4e8405f9d25edab395d61502bdba9}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!hidden@{hidden}}
\index{hidden@{hidden}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[hidden]{\setlength{\rightskip}{0pt plus 5cm}{\bf Layer}$\ast$ {\bf neuralpp::NeuralNet::hidden}\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_bbdaa1b6c0a1a95d2b18cd25fda2a266}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!output@{output}}
\index{output@{output}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[output]{\setlength{\rightskip}{0pt plus 5cm}{\bf Layer}$\ast$ {\bf neuralpp::NeuralNet::output}\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_fa9b2dbcbb39d0fc70f790ac24069a74}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!actv\_\-f@{actv\_\-f}}
\index{actv\_\-f@{actv\_\-f}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[actv\_\-f]{\setlength{\rightskip}{0pt plus 5cm}double($\ast$ {\bf neuralpp::NeuralNet::actv\_\-f})(double)\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_c1469e6afd87d85b82f14bc246f82457}
@ -394,12 +385,20 @@ Closes an open XML document generated by \char`\"{}initXML\char`\"{} and \char`\
Private pointer to function, containing the function to be used as activation function.
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!deriv@{deriv}}
\index{deriv@{deriv}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[deriv]{\setlength{\rightskip}{0pt plus 5cm}double($\ast$ {\bf neuralpp::NeuralNet::deriv})(double)\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1NeuralNet_df44689f4e6201ca1ddc67655cce3576}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!input@{input}}
\index{input@{input}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[input]{\setlength{\rightskip}{0pt plus 5cm}{\bf Layer}$\ast$ {\bf neuralpp::NeuralNet::input}}\label{classneuralpp_1_1NeuralNet_e2b4e8405f9d25edab395d61502bdba9}
Private pointer to function, containing the function to be used as derivate of the activation function.
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!hidden@{hidden}}
\index{hidden@{hidden}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[hidden]{\setlength{\rightskip}{0pt plus 5cm}{\bf Layer}$\ast$ {\bf neuralpp::NeuralNet::hidden}}\label{classneuralpp_1_1NeuralNet_bbdaa1b6c0a1a95d2b18cd25fda2a266}
\index{neuralpp::NeuralNet@{neuralpp::NeuralNet}!output@{output}}
\index{output@{output}!neuralpp::NeuralNet@{neuralpp::NeuralNet}}
\subsubsection[output]{\setlength{\rightskip}{0pt plus 5cm}{\bf Layer}$\ast$ {\bf neuralpp::NeuralNet::output}}\label{classneuralpp_1_1NeuralNet_fa9b2dbcbb39d0fc70f790ac24069a74}

View File

@ -8,9 +8,9 @@ Class for managing neurons.
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item
{\bf Neuron} (double($\ast$a)(double), double($\ast$d)(double))
{\bf Neuron} (double($\ast$a)(double))
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item
{\bf Neuron} (vector$<$ {\bf Synapsis} $>$ {\bf in}, vector$<$ {\bf Synapsis} $>$ {\bf out}, double($\ast$a)(double), double($\ast$d)(double))
{\bf Neuron} (vector$<$ {\bf Synapsis} $>$ {\bf in}, vector$<$ {\bf Synapsis} $>$ {\bf out}, double($\ast$a)(double))
\begin{CompactList}\small\item\em Alternative constructor, that gets also the synapsis linked to the neuron. \item\end{CompactList}\item
{\bf Synapsis} \& {\bf synIn} (size\_\-t i)
\begin{CompactList}\small\item\em Get the i-th synapsis connected on the input of the neuron. \item\end{CompactList}\item
@ -48,8 +48,6 @@ vector$<$ {\bf Synapsis} $>$ {\bf in}
vector$<$ {\bf Synapsis} $>$ {\bf out}
\item
double($\ast$ {\bf actv\_\-f} )(double)
\item
double($\ast$ {\bf deriv} )(double)
\end{CompactItemize}
@ -61,7 +59,7 @@ Don't use this class directly unless you know what you're doing, use \doxyref{Ne
\subsection{Constructor \& Destructor Documentation}
\index{neuralpp::Neuron@{neuralpp::Neuron}!Neuron@{Neuron}}
\index{Neuron@{Neuron}!neuralpp::Neuron@{neuralpp::Neuron}}
\subsubsection[Neuron]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Neuron::Neuron (double($\ast$)(double) {\em a}, \/ double($\ast$)(double) {\em d})}\label{classneuralpp_1_1Neuron_c877424a295478e3464046ea43c2a7ad}
\subsubsection[Neuron]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Neuron::Neuron (double($\ast$)(double) {\em a})}\label{classneuralpp_1_1Neuron_9863a08b73bc97c8b514aca6c580ff7b}
Constructor.
@ -69,11 +67,11 @@ Constructor.
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em a}]Activation function \item[{\em d}]Its derivate \end{description}
\item[{\em a}]Activation function \end{description}
\end{Desc}
\index{neuralpp::Neuron@{neuralpp::Neuron}!Neuron@{Neuron}}
\index{Neuron@{Neuron}!neuralpp::Neuron@{neuralpp::Neuron}}
\subsubsection[Neuron]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Neuron::Neuron (vector$<$ {\bf Synapsis} $>$ {\em in}, \/ vector$<$ {\bf Synapsis} $>$ {\em out}, \/ double($\ast$)(double) {\em a}, \/ double($\ast$)(double) {\em d})}\label{classneuralpp_1_1Neuron_e25546d4f7126f106c2f3b2d8ed2c792}
\subsubsection[Neuron]{\setlength{\rightskip}{0pt plus 5cm}neuralpp::Neuron::Neuron (vector$<$ {\bf Synapsis} $>$ {\em in}, \/ vector$<$ {\bf Synapsis} $>$ {\em out}, \/ double($\ast$)(double) {\em a})}\label{classneuralpp_1_1Neuron_f1bf19ec93174f60b368ee4a91b03f46}
Alternative constructor, that gets also the synapsis linked to the neuron.
@ -81,7 +79,7 @@ Alternative constructor, that gets also the synapsis linked to the neuron.
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em in}]Input synapses \item[{\em out}]Output synapses \item[{\em a}]Activation function \item[{\em d}]Derivate of the activation function \end{description}
\item[{\em in}]Input synapses \item[{\em out}]Output synapses \item[{\em a}]Activation function \end{description}
\end{Desc}
@ -240,11 +238,6 @@ Remove input and output synapsis from a neuron.
\subsubsection[actv\_\-f]{\setlength{\rightskip}{0pt plus 5cm}double($\ast$ {\bf neuralpp::Neuron::actv\_\-f})(double)\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1Neuron_198ddd0d11a26d0052d52b787d6a0df0}
\index{neuralpp::Neuron@{neuralpp::Neuron}!deriv@{deriv}}
\index{deriv@{deriv}!neuralpp::Neuron@{neuralpp::Neuron}}
\subsubsection[deriv]{\setlength{\rightskip}{0pt plus 5cm}double($\ast$ {\bf neuralpp::Neuron::deriv})(double)\hspace{0.3cm}{\tt [private]}}\label{classneuralpp_1_1Neuron_8b881889e40e9782c49b0efad2b1dde3}
The documentation for this class was generated from the following file:\begin{CompactItemize}

Some files were not shown because too many files have changed in this diff Show More