|
Dynamic Neural Field Composer 0.0.0
A C++20 library and interactive application for building and simulating Dynamic Neural Field (DNF) architectures.
|
Abstract base for activation functions applied to a neural field. More...
#include <activation_function.h>
Public Member Functions | |
| ActivationFunction ()=default | |
| ActivationFunction (const ActivationFunction &)=default | |
| virtual void | apply (const std::vector< double > &input, std::vector< double > &out) const =0 |
Apply the activation function in-place into a pre-allocated out buffer. out must already be sized to input.size(). No heap allocation occurs. | |
| virtual std::unique_ptr< ActivationFunction > | clone () const =0 |
| virtual std::vector< double > | operator() (const std::vector< double > &input)=0 |
Apply the activation function to input and return the result. | |
| ActivationFunction & | operator= (const ActivationFunction &)=delete |
| virtual void | print () const =0 |
| virtual std::string | toString () const =0 |
| virtual | ~ActivationFunction ()=default |
Public Attributes | |
| ActivationFunctionType | type |
| Concrete function type. | |
Abstract base for activation functions applied to a neural field.
Subclasses implement operator() to transform an activation vector element-wise into an output (field "output" component).
|
default |
|
default |
|
virtualdefault |
|
pure virtual |
Apply the activation function in-place into a pre-allocated out buffer. out must already be sized to input.size(). No heap allocation occurs.
Implemented in dnf_composer::element::SigmoidFunction, dnf_composer::element::HeavisideFunction, and dnf_composer::element::AbsSigmoidFunction.
|
pure virtual |
|
pure virtual |
Apply the activation function to input and return the result.
Implemented in dnf_composer::element::SigmoidFunction, dnf_composer::element::HeavisideFunction, and dnf_composer::element::AbsSigmoidFunction.
|
delete |
|
pure virtual |
|
pure virtual |
| ActivationFunctionType dnf_composer::element::ActivationFunction::type |
Concrete function type.