ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
tmva
tmva
src
TActivationIdentity.cxx
Go to the documentation of this file.
1
// @(#)root/tmva $Id$
2
// Author: Matt Jachowski
3
4
/**********************************************************************************
5
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6
* Package: TMVA *
7
* Class : TActivationIdentity *
8
* Web : http://tmva.sourceforge.net *
9
* *
10
* Description: *
11
* Identity activation function for TNeuron *
12
* *
13
* Authors (alphabetical): *
14
* Matt Jachowski <jachowski@stanford.edu> - Stanford University, USA *
15
* *
16
* Copyright (c) 2005: *
17
* CERN, Switzerland *
18
* *
19
* Redistribution and use in source and binary forms, with or without *
20
* modification, are permitted according to the terms listed in LICENSE *
21
* (http://tmva.sourceforge.net/LICENSE) *
22
**********************************************************************************/
23
24
#include "
TMVA/TActivationIdentity.h
"
25
26
#include "
Rtypes.h
"
27
28
#include <iostream>
29
30
class
TString
;
31
32
ClassImp
(
TMVA::TActivationIdentity
)
33
34
////////////////////////////////////////////////////////////////////////////////
35
/// writes the identity function source code
36
37
void
TMVA::TActivationIdentity::MakeFunction( std::ostream& fout, const
TString
& fncName )
38
{
39
fout <<
"double "
<< fncName <<
"(double x) const {"
<< std::endl;
40
fout <<
" // identity"
<< std::endl;
41
fout <<
" return x;"
<< std::endl;
42
fout <<
"}"
<< std::endl;
43
}
ClassImp
ClassImp(TMVA::TActivationIdentity) void TMVA
writes the identity function source code
Definition:
TActivationIdentity.cxx:32
Rtypes.h
TString
Basic string class.
Definition:
TString.h:137
TMVA::TActivationIdentity
Definition:
TActivationIdentity.h:48
TActivationIdentity.h
void
typedef void((*Func_t)())