Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkBatchSupervisedTrainingFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBatchSupervisedTrainingFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/08/02 19:17:37 $
00007   Version:   $Revision: 1.1 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkBatchSupervisedTrainingFunction_h
00018 #define __itkBatchSupervisedTrainingFunction_h
00019 
00020 #include "itkTrainingFunctionBase.h"
00021 
00022 namespace itk
00023 {
00024 namespace Statistics
00025 {
00026 
00027 template<class TSample, class TOutput, class ScalarType>
00028 class BatchSupervisedTrainingFunction : public TrainingFunctionBase<TSample, TOutput, ScalarType>
00029 {
00030 public:
00031 
00032   typedef BatchSupervisedTrainingFunction Self;
00033   typedef TrainingFunctionBase<TSample, TOutput, ScalarType> Superclass;
00034   typedef SmartPointer<Self> Pointer;
00035   typedef SmartPointer<const Self> ConstPointer;
00036 
00038   itkTypeMacro(BatchSupervisedTrainingFunction, TrainingFunctionBase);
00039 
00041   itkNewMacro(Self);
00042 
00043   typedef typename Superclass::NetworkType NetworkType;
00044 
00046   void SetNumOfIterations(long i);
00047 
00048   void Train(NetworkType* net, TSample* samples, TOutput* targets);
00049 
00050   itkSetMacro(Threshold, ScalarType);
00051 
00052 protected:
00053 
00054   BatchSupervisedTrainingFunction();
00055   ~BatchSupervisedTrainingFunction(){};
00056 
00058   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00059 
00060   ScalarType  m_Threshold;
00061   bool        m_Stop; //stop condition
00062 };
00063 
00064 } // end namespace Statistics
00065 } // end namespace itk
00066 
00067 #ifndef ITK_MANUAL_INSTANTIATION
00068   #include "itkBatchSupervisedTrainingFunction.txx"
00069 #endif
00070 
00071 #endif

Generated at Wed May 24 22:48:47 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000