ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
lwtDev::ELU Class Reference

#include <Stack.h>

Collaboration diagram for lwtDev::ELU:

Public Member Functions

 ELU (double alpha)
 
double operator() (double) const
 

Private Attributes

double m_alpha
 

Detailed Description

Definition at line 337 of file Stack.h.

Constructor & Destructor Documentation

◆ ELU()

lwtDev::ELU::ELU ( double  alpha)

Definition at line 721 of file Stack.cxx.

721  :
722  m_alpha(alpha)
723  {}

Member Function Documentation

◆ operator()()

double lwtDev::ELU::operator() ( double  x) const

Definition at line 724 of file Stack.cxx.

724  {
725  /* ELU function : https://arxiv.org/pdf/1511.07289.pdf
726  f(x)=(x>=0)*x + ( (x<0)*alpha*(exp(x)-1) )
727  */
728  double exp_term = m_alpha * (std::exp(x)-1);
729  return x>=0 ? x : exp_term;
730  }

Member Data Documentation

◆ m_alpha

double lwtDev::ELU::m_alpha
private

Definition at line 343 of file Stack.h.


The documentation for this class was generated from the following files:
lwtDev::ELU::m_alpha
double m_alpha
Definition: Stack.h:343
drawFromPickle.exp
exp
Definition: drawFromPickle.py:36
x
#define x