wbc
wbc::ActivationFunction Struct Reference

#include <ActivationFunction.hpp>

Public Member Functions

 ActivationFunction ()
 
const base::VectorXd & compute (const base::VectorXd &values)
 

Public Attributes

double threshold
 
activationType type
 
base::VectorXd activation
 

Detailed Description

If input < threshold, activation will be same as given value, otherwise 1 Define different activation function like linear, quadratic, etc.

Constructor & Destructor Documentation

◆ ActivationFunction()

wbc::ActivationFunction::ActivationFunction ( )
inline

Member Function Documentation

◆ compute()

const base::VectorXd & wbc::ActivationFunction::compute ( const base::VectorXd & values)
inline

Member Data Documentation

◆ activation

base::VectorXd wbc::ActivationFunction::activation

◆ threshold

double wbc::ActivationFunction::threshold

Threshold value. Effect depends on type activation

◆ type

activationType wbc::ActivationFunction::type

The documentation for this struct was generated from the following file: