Main Page   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 Sun Mar 2 21:35:50 2003 for libperceptronnetwork by doxygen1.3-rc3