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

itkSigmoidTransferFunction.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkSigmoidTransferFunction.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-28 21:04:59 $
00007   Version:   $Revision: 1.3 $
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 
00018 #ifndef __itkSigmoidTransferFunction_h
00019 #define __itkSigmoidTransferFunction_h
00020 
00021 #include "itkTransferFunctionBase.h"
00022 
00023 namespace itk
00024 {
00025 namespace Statistics
00026 {
00027 
00028 template<class ScalarType>
00029 class SigmoidTransferFunction : public TransferFunctionBase<ScalarType>
00030 {
00031 
00032 public:
00033 
00035   typedef SigmoidTransferFunction          Self;
00036   typedef TransferFunctionBase<ScalarType> Superclass;
00037   typedef SmartPointer<Self>               Pointer;
00038   typedef SmartPointer<const Self>         ConstPointer;
00039 
00041   itkTypeMacro(SigmoidTransferFunction, TransferFunctionBase);
00042 
00044   itkNewMacro(Self);
00045 
00047   itkSetMacro(Alpha,ScalarType);
00048   itkGetMacro(Alpha,ScalarType);
00049   itkSetMacro(Beta,ScalarType);
00050   itkGetMacro(Beta,ScalarType);
00051   itkSetMacro(OutputMinimum,ScalarType);
00052   itkGetMacro(OutputMinimum,ScalarType);
00053   itkSetMacro(OutputMaximum,ScalarType);
00054   itkGetMacro(OutputMaximum,ScalarType);
00056 
00058   virtual ScalarType Evaluate(const ScalarType& input) const;
00059 
00061   virtual ScalarType EvaluateDerivative(const ScalarType& input) const;
00062 
00063 protected:
00064 
00065   SigmoidTransferFunction();
00066   virtual ~SigmoidTransferFunction();
00067 
00069   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00070 
00071 private:
00072 
00073   ScalarType m_Alpha;
00074   ScalarType m_Beta;
00075   ScalarType m_OutputMinimum;
00076   ScalarType m_OutputMaximum;
00077 };
00078 
00079 } // end namespace Statistics
00080 } // end namespace itk
00081 
00082 #ifndef ITK_MANUAL_INSTANTIATION
00083   #include "itkSigmoidTransferFunction.txx"
00084 #endif
00085 
00086 #endif
00087 

Generated at Mon Jul 12 2010 19:53:04 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000