|
svZeroDSolver
|
Two hill activation function. More...
#include <ActivationFunction.h>
Public Member Functions | |
| TwoHillActivation (double cardiac_period) | |
| Construct with default parameter values (loader fills via set_param). | |
| double | compute (double time) override |
| Compute activation value at given time. | |
| void | finalize () override |
| Called after all parameters are set (e.g. by loader). | |
Public Member Functions inherited from ActivationFunction | |
| ActivationFunction (double cardiac_period, const std::vector< std::pair< std::string, InputParameter > > &input_param_properties) | |
| Construct activation function. | |
| virtual | ~ActivationFunction ()=default |
| Virtual destructor. | |
| void | set_param (const std::string &name, double value) |
| Set a scalar parameter value by name. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ActivationFunction | |
| static std::unique_ptr< ActivationFunction > | create_default (const std::string &type_str, double cardiac_period) |
| Create a default activation function from activation function type. | |
Public Attributes inherited from ActivationFunction | |
| const std::vector< std::pair< std::string, InputParameter > > | input_param_properties |
| Properties of the input parameters for this activation function [(name, InputParameter), ...]. | |
Protected Attributes inherited from ActivationFunction | |
| double | cardiac_period_ |
| Time duration of one cardiac cycle. | |
| std::map< std::string, double > | params_ |
| Map of parameter names to their values. | |
Two hill activation function.
This implements the two-hill activation function which provides more flexible and physiologically realistic waveforms. See https://link.springer.com/article/10.1007/s10439-022-03047-3
The activation is computed as:
![\[A(t) = C \cdot \frac{g_1(t)}{1 + g_1(t)} \cdot \frac{1}{1 + g_2(t)}
\]](form_4.png)
where:
![\[g_1(t) = \left(\frac{t_{shifted}}{\tau_1}\right)^{m_1}, \quad
g_2(t) = \left(\frac{t_{shifted}}{\tau_2}\right)^{m_2}
\]](form_5.png)
and 

|
inlineexplicit |
Construct with default parameter values (loader fills via set_param).
| cardiac_period | Cardiac cycle period |
|
overridevirtual |
Compute activation value at given time.
| time | Current time |
Implements ActivationFunction.
|
overridevirtual |
Called after all parameters are set (e.g. by loader).
Default no-op. TwoHillActivation overrides to recompute normalization.
Reimplemented from ActivationFunction.