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

#include <Stack.h>

Collaboration diagram for lwtDev::Swish:

Public Member Functions

 Swish (double alpha)
 
double operator() (double) const
 

Private Attributes

double m_alpha
 

Detailed Description

Definition at line 353 of file Stack.h.

Constructor & Destructor Documentation

◆ Swish()

lwtDev::Swish::Swish ( double  alpha)

Definition at line 705 of file Stack.cxx.

705  :
706  m_alpha(alpha)
707  {}

Member Function Documentation

◆ operator()()

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

Definition at line 708 of file Stack.cxx.

708  {
709  return x * nn_sigmoid(m_alpha * x);
710  }

Member Data Documentation

◆ m_alpha

double lwtDev::Swish::m_alpha
private

Definition at line 359 of file Stack.h.


The documentation for this class was generated from the following files:
lwtDev::Swish::m_alpha
double m_alpha
Definition: Stack.h:359
lwtDev::nn_sigmoid
double nn_sigmoid(double x)
Definition: Stack.cxx:690
x
#define x