<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ITK: itkLayerBase.h Source File</title> <link href="DoxygenStyle.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 --> <center> <a href="index.html" class="qindex">Main Page</a> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <a href="pages.html" class="qindex">Concepts</a></center> <!-- Generated by Doxygen 1.5.9 --> <div class="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a> » <a class="el" href="dir_2c33022d19e8077162952ea9ed57656d.html">Numerics</a> » <a class="el" href="dir_eec394370736d51e5081e791ec403a83.html">NeuralNetworks</a> </div> <div class="contents"> <h1>itkLayerBase.h</h1><a href="itkLayerBase_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Insight Segmentation & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkLayerBase.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2009-01-24 21:33:49 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.8 $</span> <a name="l00008"></a>00008 <span class="comment"></span> <a name="l00009"></a>00009 <span class="comment"> Copyright (c) Insight Software Consortium. All rights reserved.</span> <a name="l00010"></a>00010 <span class="comment"> See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.</span> <a name="l00011"></a>00011 <span class="comment"></span> <a name="l00012"></a>00012 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even</span> <a name="l00013"></a>00013 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span> <a name="l00014"></a>00014 <span class="comment"> PURPOSE. See the above copyright notices for more information.</span> <a name="l00015"></a>00015 <span class="comment"></span> <a name="l00016"></a>00016 <span class="comment">=========================================================================*/</span> <a name="l00017"></a>00017 <span class="preprocessor">#ifndef __itkLayerBase_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkLayerBase_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include <iostream></span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkLightProcessObject_8h.html">itkLightProcessObject.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkArray_8h.html">itkArray.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkVector_8h.html">itkVector.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkTransferFunctionBase_8h.html">itkTransferFunctionBase.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkInputFunctionBase_8h.html">itkInputFunctionBase.h</a>"</span> <a name="l00026"></a>00026 <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkWeightSetBase_8h.html">itkWeightSetBase.h</a>"</span> <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="itkMacro_8h.html">itkMacro.h</a>"</span> <a name="l00029"></a>00029 <a name="l00030"></a>00030 <span class="keyword">namespace </span>itk <a name="l00031"></a>00031 { <a name="l00032"></a>00032 <span class="keyword">namespace </span>Statistics <a name="l00033"></a>00033 { <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keyword">template</span><<span class="keyword">class</span> TMeasurementVector, <span class="keyword">class</span> TTargetVector> <a name="l00036"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html">00036</a> <span class="keyword">class </span><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html">LayerBase</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1LightProcessObject.html" title="LightProcessObject is the base class for all process objects (source, filters, mappers)...">LightProcessObject</a> <a name="l00037"></a>00037 { <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">public</span>: <a name="l00040"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#e07348de4700783a5d1f6cc46ed0ea6a">00040</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html">LayerBase</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00041"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#02fb655bdfc8798eef8b20dc3fc1669c">00041</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1LightProcessObject.html" title="LightProcessObject is the base class for all process objects (source, filters, mappers)...">LightProcessObject</a> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Superclass</a>; <a name="l00042"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#b31174b36b00f8d7a1f2f642457b3960">00042</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<Self></a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>; <a name="l00043"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#e67c3b2e81e5f801d2fe3b18126414a8">00043</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<const Self></a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>; <a name="l00044"></a>00044 <a name="l00046"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#e207753b4cf0ab06e3f6a3fb9a10edd1">00046</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html">LayerBase</a>, <a class="code" href="classitk_1_1LightProcessObject.html" title="LightProcessObject is the base class for all process objects (source, filters, mappers)...">LightProcessObject</a>); <a name="l00047"></a>00047 <a name="l00048"></a>00048 <span class="keyword">typedef</span> TMeasurementVector <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#e207753b4cf0ab06e3f6a3fb9a10edd1">InputVectorType</a>; <a name="l00049"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#88584d6bfcfe19ec2325c2d9943479b7">00049</a> <span class="keyword">typedef</span> TTargetVector <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#88584d6bfcfe19ec2325c2d9943479b7">OutputVectorType</a>; <a name="l00050"></a>00050 <a name="l00051"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">00051</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TMeasurementVector::ValueType <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a>; <a name="l00052"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#3f57a21ac9c42b0fb58eb31e17f92f5b">00052</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a>* <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#3f57a21ac9c42b0fb58eb31e17f92f5b">ValuePointer</a>; <a name="l00053"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#56efaf509c6a642c53f7678eb1eac08f">00053</a> <span class="keyword">typedef</span> <span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a>* <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#56efaf509c6a642c53f7678eb1eac08f">ValueConstPointer</a>; <a name="l00054"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#6984fe7507a60ae1818e349ac001387e">00054</a> <span class="keyword">typedef</span> <a class="code" href="classvnl__vector.html">vnl_vector<ValueType></a> <a class="code" href="classvnl__vector.html">NodeVectorType</a>; <a name="l00055"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#40f7fe1ba12f24f83d354ecd531908f4">00055</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">Array<ValueType></a> <a class="code" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">InternalVectorType</a>; <a name="l00056"></a>00056 <a name="l00057"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#c7bb8fb4f1dee238ef889662cb4fb29f">00057</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html">LayerBase</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html">LayerInterfaceType</a>; <a name="l00058"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#16d55ad08d88a9f4a04ba0c2b3794e42">00058</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1WeightSetBase.html">WeightSetBase<TMeasurementVector,TTargetVector></a> <a class="code" href="classitk_1_1Statistics_1_1WeightSetBase.html">WeightSetType</a>; <a name="l00059"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4c58e17c6c4f5f2f55c03e2535388487">00059</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1WeightSetBase.html">WeightSetBase<TMeasurementVector,TTargetVector></a> <a class="code" href="classitk_1_1Statistics_1_1WeightSetBase.html">WeightSetInterfaceType</a>; <a name="l00060"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#53b4f005a85dc4c3744945050d4f38e3">00060</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1InputFunctionBase.html">InputFunctionBase<ValueType*, ValueType></a> <a class="code" href="classitk_1_1Statistics_1_1InputFunctionBase.html">InputFunctionInterfaceType</a>; <a name="l00061"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#2bfa936652d867415ec5692b4c59e629">00061</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Statistics_1_1TransferFunctionBase.html">TransferFunctionBase<ValueType></a> <a class="code" href="classitk_1_1Statistics_1_1TransferFunctionBase.html">TransferFunctionInterfaceType</a>; <a name="l00062"></a>00062 <a name="l00063"></a>00063 <span class="comment">//The only valid layer types</span> <a name="l00064"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484109ae0532a71111adc37e4d04f5bb768">00064</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e48473361432229af47d7d23b9e6b17a4781">INVALIDLAYER</a>=0, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484fd44a644912ad3587b2db5960d4ad119">INPUTLAYER</a>=1, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e48447319171bcbb3eeace17768c76d1a919">HIDDENLAYER</a>=2, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484109ae0532a71111adc37e4d04f5bb768">OUTPUTLAYER</a>=3 } <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a>; <a name="l00065"></a>00065 <a name="l00066"></a>00066 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#8c4ab0ce1d5a0a8c0a59df30f0820820">SetNumberOfNodes</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>); <a name="l00067"></a>00067 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#dcb47599b46daf7cc1426f08c825a87a">GetNumberOfNodes</a>() <span class="keyword">const</span>; <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#76b01cacabebcac1ef1f02379b22841a">GetInputValue</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) <span class="keyword">const</span> = 0; <a name="l00070"></a>00070 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#14977a6f384820662a485eddf4cf70e9">GetOutputValue</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) <span class="keyword">const</span> = 0; <a name="l00071"></a>00071 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#3f57a21ac9c42b0fb58eb31e17f92f5b">ValuePointer</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#fc86200771fe9eba45b02dfd5e8c2464">GetOutputVector</a>() = 0; <a name="l00072"></a>00072 <a name="l00073"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#650b83e973ae250950669522997f2382">00073</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#650b83e973ae250950669522997f2382">ForwardPropagate</a>(){}; <a name="l00074"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#ba61fa53a561ffa26521814bb2ee89b0">00074</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#ba61fa53a561ffa26521814bb2ee89b0">ForwardPropagate</a>(TMeasurementVector){}; <a name="l00075"></a>00075 <a name="l00076"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#508cb0c12a6bb4e13ab90ca4908b5a46">00076</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#508cb0c12a6bb4e13ab90ca4908b5a46">BackwardPropagate</a>(){}; <a name="l00077"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#82cea3dc8ec14987e6794758cd522fd5">00077</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#82cea3dc8ec14987e6794758cd522fd5">BackwardPropagate</a>(<a class="code" href="classitk_1_1Array.html" title="Array class with size defined at construction time.">InternalVectorType</a>){}; <a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#e8e34d8f70e9fdd541a3fd717cb850a1">GetOutputErrorValue</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) <span class="keyword">const</span> = 0; <a name="l00080"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#e467ec23c70a4cdab1c7d3a2c080c946">00080</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#e467ec23c70a4cdab1c7d3a2c080c946">SetOutputErrorValues</a>(TTargetVector) {}; <a name="l00081"></a>00081 <a name="l00082"></a>00082 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#5d5fa0a6546e517af4a008f93abf2d0b">GetInputErrorValue</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) <span class="keyword">const</span> = 0; <a name="l00083"></a>00083 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#3f57a21ac9c42b0fb58eb31e17f92f5b">ValuePointer</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#a1854eed8d5eaa6610ada0accfd383ee">GetInputErrorVector</a>() = 0; <a name="l00084"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#11a863720e538cd9aa7fbf4b789df39a">00084</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#11a863720e538cd9aa7fbf4b789df39a">SetInputErrorValue</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a>, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) {}; <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="comment">//itkSetObjectMacro(InputWeightSet, WeightSetInterfaceType);</span> <a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#edeacad889f4b52c6d2471541bd44230">SetInputWeightSet</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4c58e17c6c4f5f2f55c03e2535388487">WeightSetInterfaceType</a>*); <a name="l00088"></a>00088 <a class="code" href="itkMacro_8h.html#f6bef9ee7e4c077b96a08848ed4e7660">itkGetObjectMacro</a>(InputWeightSet, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4c58e17c6c4f5f2f55c03e2535388487">WeightSetInterfaceType</a>); <a name="l00089"></a>00089 <a class="code" href="itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a>(InputWeightSet, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4c58e17c6c4f5f2f55c03e2535388487">WeightSetInterfaceType</a>); <a name="l00090"></a>00090 <a name="l00091"></a>00091 <span class="comment">//itkSetObjectMacro(OutputWeightSet, WeightSetInterfaceType);</span> <a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#38828976ce7f7bd82dc8a0626e46fbd1">SetOutputWeightSet</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4c58e17c6c4f5f2f55c03e2535388487">WeightSetInterfaceType</a>*); <a name="l00093"></a>00093 <a class="code" href="itkMacro_8h.html#f6bef9ee7e4c077b96a08848ed4e7660">itkGetObjectMacro</a>(OutputWeightSet, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4c58e17c6c4f5f2f55c03e2535388487">WeightSetInterfaceType</a>); <a name="l00094"></a>00094 <a class="code" href="itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a>(OutputWeightSet, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4c58e17c6c4f5f2f55c03e2535388487">WeightSetInterfaceType</a>); <a name="l00095"></a>00095 <a name="l00096"></a>00096 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#85fcb932857fa428de645b4376ba73ff">SetNodeInputFunction</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#53b4f005a85dc4c3744945050d4f38e3">InputFunctionInterfaceType</a>* f); <a name="l00097"></a>00097 <a class="code" href="itkMacro_8h.html#f6bef9ee7e4c077b96a08848ed4e7660">itkGetObjectMacro</a>(NodeInputFunction, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#53b4f005a85dc4c3744945050d4f38e3">InputFunctionInterfaceType</a>); <a name="l00098"></a>00098 <a class="code" href="itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a>(NodeInputFunction, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#53b4f005a85dc4c3744945050d4f38e3">InputFunctionInterfaceType</a>); <a name="l00099"></a>00099 <a name="l00100"></a>00100 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#fb18d43a1f541a9f3e6d275c31cd1c34">SetTransferFunction</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#2bfa936652d867415ec5692b4c59e629">TransferFunctionInterfaceType</a>* f); <a name="l00101"></a>00101 <a class="code" href="itkMacro_8h.html#f6bef9ee7e4c077b96a08848ed4e7660">itkGetObjectMacro</a>(ActivationFunction, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#2bfa936652d867415ec5692b4c59e629">TransferFunctionInterfaceType</a>); <a name="l00102"></a>00102 <a class="code" href="itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a>(ActivationFunction, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#2bfa936652d867415ec5692b4c59e629">TransferFunctionInterfaceType</a>); <a name="l00103"></a>00103 <a name="l00104"></a>00104 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#31b24e2cb979c8b3b476f923c81d595c">Activation</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a>) = 0; <a name="l00105"></a>00105 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#5ed5428c0893e0af6ed129d5e76d87cc">DActivation</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#1ee862348f453c48543f3a9da12aadaa">ValueType</a>) = 0; <a name="l00106"></a>00106 <a name="l00107"></a>00107 <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#880841a77a7bc476b11b0a227d909849">itkSetEnumMacro</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a>, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a>); <a name="l00108"></a>00108 <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#6d4d8bfd750e06785c2422e7cc91db41">itkGetEnumMacro</a>(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a>, <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a>); <a name="l00109"></a>00109 <a name="l00110"></a>00110 <span class="comment">//#define __USE_OLD_INTERFACE Comment out to ensure that new interface works</span> <a name="l00111"></a>00111 <span class="preprocessor">#ifdef __USE_OLD_INTERFACE</span> <a name="l00112"></a>00112 <span class="preprocessor"></span> <span class="keywordtype">void</span> SetLayerType(<span class="keyword">const</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a> value) { SetLayerTypeCode(value); } <a name="l00113"></a>00113 <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a> GetLayerType(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> GetLayerTypeCode(); } <a name="l00114"></a>00114 <span class="comment">//For backwards compatibility</span> <a name="l00115"></a>00115 <span class="keywordtype">void</span> SetLayerType(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> value) <a name="l00116"></a>00116 { <a name="l00117"></a>00117 <span class="keywordflow">switch</span>(value) <a name="l00118"></a>00118 { <a name="l00119"></a>00119 <span class="keywordflow">case</span> 0: <a name="l00120"></a>00120 SetLayerType(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e48473361432229af47d7d23b9e6b17a4781">INVALIDLAYER</a>); <a name="l00121"></a>00121 <span class="keywordflow">break</span>; <a name="l00122"></a>00122 <span class="keywordflow">case</span> 1: <a name="l00123"></a>00123 SetLayerType(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484fd44a644912ad3587b2db5960d4ad119">INPUTLAYER</a>); <a name="l00124"></a>00124 <span class="keywordflow">break</span>; <a name="l00125"></a>00125 <span class="keywordflow">case</span> 2: <a name="l00126"></a>00126 SetLayerType(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e48447319171bcbb3eeace17768c76d1a919">HIDDENLAYER</a>); <a name="l00127"></a>00127 <span class="keywordflow">break</span>; <a name="l00128"></a>00128 <span class="keywordflow">case</span> 3: <a name="l00129"></a>00129 SetLayerType(<a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484109ae0532a71111adc37e4d04f5bb768">OUTPUTLAYER</a>); <a name="l00130"></a>00130 <span class="keywordflow">break</span>; <a name="l00131"></a>00131 <span class="keywordflow">default</span>: <a name="l00132"></a>00132 <span class="comment">//Throw Exception Here</span> <a name="l00133"></a>00133 <span class="keywordflow">break</span>; <a name="l00134"></a>00134 } <a name="l00135"></a>00135 } <a name="l00136"></a>00136 <span class="preprocessor">#endif</span> <a name="l00137"></a>00137 <span class="preprocessor"></span> <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(LayerId,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>); <a name="l00138"></a>00138 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>(LayerId,<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>); <a name="l00139"></a>00139 <a name="l00140"></a>00140 <span class="comment">//virtual void SetBias(const ValueType) = 0;</span> <a name="l00141"></a>00141 <span class="comment">//virtual const ValueType & GetBias() const = 0;</span> <a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="keyword">protected</span>: <a name="l00144"></a>00144 <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#3a48248d6b195ff4fbaba14d9610f228">LayerBase</a>(); <a name="l00145"></a>00145 <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#717bf8950e49d4a495fb3b6d9bd780ae">~LayerBase</a>(); <a name="l00146"></a>00146 <a name="l00148"></a>00148 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#f79b0e7b3aef653775652b4c3b2ff725">PrintSelf</a>( std::ostream& os, Indent indent ) <span class="keyword">const</span>; <a name="l00149"></a>00149 <a name="l00150"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#b207fc800728f0ebf0599ce3ecc4d175">00150</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#0e3fd05fb51bf4b449a223600db3e484">LayerTypeCode</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#b207fc800728f0ebf0599ce3ecc4d175">m_LayerTypeCode</a>; <span class="comment">//input, hidden, output</span> <a name="l00151"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#263f0dd59446267bbc1ac8fcc252842b">00151</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#263f0dd59446267bbc1ac8fcc252842b">m_LayerId</a>; <a name="l00152"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#630e3e53c4904725202d852cbe7d598d">00152</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#630e3e53c4904725202d852cbe7d598d">m_NumberOfNodes</a>; <a name="l00153"></a>00153 <a name="l00154"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#9bd1f346cbc3bce7a77f9bbe1282d365">00154</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Statistics_1_1WeightSetBase.html#f1e17f5ddce2d3ff960e0d2403396610">WeightSetInterfaceType::Pointer</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#9bd1f346cbc3bce7a77f9bbe1282d365">m_InputWeightSet</a>; <a name="l00155"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4fcf62951552c6cc7595a5f36839fb14">00155</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Statistics_1_1WeightSetBase.html#f1e17f5ddce2d3ff960e0d2403396610">WeightSetInterfaceType::Pointer</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#4fcf62951552c6cc7595a5f36839fb14">m_OutputWeightSet</a>; <a name="l00156"></a>00156 <a name="l00157"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#198fcd4da220b16a55dc55924ca11b92">00157</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">TransferFunctionInterfaceType::Pointer</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#198fcd4da220b16a55dc55924ca11b92">m_ActivationFunction</a>; <a name="l00158"></a><a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#9fba278f4b182b6d2f4379df252d35e8">00158</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">InputFunctionInterfaceType::Pointer</a> <a class="code" href="classitk_1_1Statistics_1_1LayerBase.html#9fba278f4b182b6d2f4379df252d35e8">m_NodeInputFunction</a>; <a name="l00159"></a>00159 <a name="l00160"></a>00160 }; <span class="comment">//class layer base</span> <a name="l00161"></a>00161 <a name="l00162"></a>00162 } <span class="comment">//namespace itk</span> <a name="l00163"></a>00163 } <span class="comment">//namespace statistics</span> <a name="l00164"></a>00164 <a name="l00165"></a>00165 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00166"></a>00166 <span class="preprocessor"></span><span class="preprocessor">#include "itkLayerBase.txx"</span> <a name="l00167"></a>00167 <span class="preprocessor">#endif</span> <a name="l00168"></a>00168 <span class="preprocessor"></span> <a name="l00169"></a>00169 <span class="preprocessor">#endif</span> <a name="l00170"></a>00170 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:24:42 2009 for ITK by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img src="http://www.stack.nl/~dimitri/doxygen/doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53> </a> 1.5.9 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2000</small></address> </body> </html>