1#ifndef ACTIVATION_FUNCTION_HPP
2#define ACTIVATION_FUNCTION_HPP
4#include <base/Eigen.hpp>
27 const base::VectorXd &
compute(
const base::VectorXd& values){
30 throw std::invalid_argument(
"ActivationFunction::compute: Threshold must be within [0..1]");
35 for(uint i = 0; i < values.size(); i++){
67 s <<
"Invalid activation type: " <<
type;
68 throw std::invalid_argument(s.str());
Definition ContactsAccelerationConstraint.cpp:3
activationType
Definition ActivationFunction.hpp:9
@ QUADRATIC_ACTIVATION
Definition ActivationFunction.hpp:12
@ STEP_ACTIVATION
Definition ActivationFunction.hpp:10
@ NO_ACTIVATION
Definition ActivationFunction.hpp:9
@ PROPORTIONAL_ACTIVATION
Definition ActivationFunction.hpp:13
@ LINEAR_ACTIVATION
Definition ActivationFunction.hpp:11
Definition ActivationFunction.hpp:17
const base::VectorXd & compute(const base::VectorXd &values)
Definition ActivationFunction.hpp:27
ActivationFunction()
Definition ActivationFunction.hpp:18
activationType type
Definition ActivationFunction.hpp:24
double threshold
Definition ActivationFunction.hpp:23
base::VectorXd activation
Definition ActivationFunction.hpp:25