Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ActivationFunction.h

00001 /* ActivationFunction.h
00002  *
00003  * Copyright (C) 2002-2003 -- Sebastian Nowozin
00004  */
00005 
00006 #ifndef ACTIVATIONFUNCTION_H
00007 #define ACTIVATIONFUNCTION_H
00008 
00013 typedef struct {
00016         char *  name;
00020         double  (* normal)(double, double);
00023         double  (* derivate)(double, double);
00024 } ActivationFunction;
00025 
00026 
00029 class
00030 ActivationFunctions
00031 {
00032 public:
00039         static const ActivationFunction * resolveByName (const char *name);
00040 
00043         static const ActivationFunction fact_tanh;
00046         static const ActivationFunction fact_log;
00049         static const ActivationFunction fact_linear;
00053         static const ActivationFunction fact_binary;
00054 };
00055 
00056 #endif
00057 

Generated on Mon Feb 24 19:37:43 2003 by doxygen1.3-rc3