ROOT logo
// @(#)root/tmva $Id$
// Author: Matt Jachowski 

/**********************************************************************************
 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
 * Package: TMVA                                                                  *
 * Class  : TMVA::TActivation                                                     *
 *                                                                                *
 * Description:                                                                   *
 *      Interface for TNeuron activation function classes.                        *
 *                                                                                *
 * Authors (alphabetical):                                                        *
 *      Matt Jachowski  <jachowski@stanford.edu> - Stanford University, USA       *
 *                                                                                *
 * Copyright (c) 2005:                                                            *
 *      CERN, Switzerland                                                         *
 *                                                                                *
 * Redistribution and use in source and binary forms, with or without             *
 * modification, are permitted according to the terms listed in LICENSE           *
 * (http://tmva.sourceforge.net/LICENSE)                                          *
 **********************************************************************************/
 

#ifndef ROOT_TMVA_TActivation
#define ROOT_TMVA_TActivation

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TActivation                                                          //
//                                                                      //
// Interface for TNeuron activation function classes                    //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include <iosfwd>

#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif

namespace TMVA {
  
   class TActivation {
    
   public:

      TActivation() {}
      virtual ~TActivation() {}

      // evaluate the activation function
      virtual Double_t Eval(Double_t arg) = 0;

      // evaulate the derivative of the activation function 
      virtual Double_t EvalDerivative(Double_t arg) = 0;

      // minimum of the range of activation function
      virtual Double_t GetMin() = 0;

      // maximum of the range of the activation function
      virtual Double_t GetMax() = 0;

      // expression for activation function
      virtual TString GetExpression() = 0;

      // writer of function code
      virtual void MakeFunction(std::ostream& fout, const TString& fncName) = 0;

      ClassDef(TActivation,0) // Interface for TNeuron activation function classes

   };

} // namespace TMVA

#endif
 TActivation.h:1
 TActivation.h:2
 TActivation.h:3
 TActivation.h:4
 TActivation.h:5
 TActivation.h:6
 TActivation.h:7
 TActivation.h:8
 TActivation.h:9
 TActivation.h:10
 TActivation.h:11
 TActivation.h:12
 TActivation.h:13
 TActivation.h:14
 TActivation.h:15
 TActivation.h:16
 TActivation.h:17
 TActivation.h:18
 TActivation.h:19
 TActivation.h:20
 TActivation.h:21
 TActivation.h:22
 TActivation.h:23
 TActivation.h:24
 TActivation.h:25
 TActivation.h:26
 TActivation.h:27
 TActivation.h:28
 TActivation.h:29
 TActivation.h:30
 TActivation.h:31
 TActivation.h:32
 TActivation.h:33
 TActivation.h:34
 TActivation.h:35
 TActivation.h:36
 TActivation.h:37
 TActivation.h:38
 TActivation.h:39
 TActivation.h:40
 TActivation.h:41
 TActivation.h:42
 TActivation.h:43
 TActivation.h:44
 TActivation.h:45
 TActivation.h:46
 TActivation.h:47
 TActivation.h:48
 TActivation.h:49
 TActivation.h:50
 TActivation.h:51
 TActivation.h:52
 TActivation.h:53
 TActivation.h:54
 TActivation.h:55
 TActivation.h:56
 TActivation.h:57
 TActivation.h:58
 TActivation.h:59
 TActivation.h:60
 TActivation.h:61
 TActivation.h:62
 TActivation.h:63
 TActivation.h:64
 TActivation.h:65
 TActivation.h:66
 TActivation.h:67
 TActivation.h:68
 TActivation.h:69
 TActivation.h:70
 TActivation.h:71
 TActivation.h:72
 TActivation.h:73
 TActivation.h:74
 TActivation.h:75
 TActivation.h:76
 TActivation.h:77