Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

tfunc.h

Go to the documentation of this file.
00001 
00015 #ifndef __TFUNC_H__
00016 #define __TFUNC_H__
00017 
00018 
00020 //     -----                                     -----                       //
00021 //       |        ___    _    ____  __  ___      |             _    ___      //
00022 //       |   |/\  ___| |/ \  (     /   /   ) |/\ |---  |   | |/ \  |   \     //
00023 //       |   |   (   | |   |  \__  +-- |---  |   |     |   | |   | |         //
00024 //       |   |    \__| |   | ____) |    \__  |   |      \__! |   |  \__/     //
00025 //                                 |                                         //
00027 
00028 class TransferFunc : public Object {
00029   public:
00030                         TransferFunc    () {}
00031     virtual double      calc            (double x) const {MUST_OVERLOAD}
00032     virtual double      derivative      (double x) const {MUST_OVERLOAD}
00033   protected:
00034 };
00035 
00036 class SigmoidTFunc : public Object {
00037   public:
00038                         SigmoidTFunc    () {}
00039     virtual double      calc            (double x) const {return sigmoid(x);}
00040     virtual double      derivative      (double x) const {return x*(1-x);}
00041   protected:
00042 };
00043 
00044 #endif
00045 

Generated on Thu Feb 10 20:06:45 2005 for Inanna by doxygen1.2.18