|
|
using | my_t = Setter<UncertainType> |
| | Type of the instance.
|
|
using | uncertain_t = UncertainType |
| | The numeric type of the variable.
|
|
using | value_t = typename uncertain_t::value_t |
| | The type of the values of the variable.
|
|
using | dep_sd_t = typename uncertain_t::dep_sd_t |
| | The type of a standard deviation that this instance depends on.
|
|
using | dep_sd_ptr = typename uncertain_t::dep_sd_ptr |
| | A pointer to a dependency of this variable.
|
|
using | deps_map_t = typename uncertain_t::deps_map_t |
| | The type of the map holding the variable's dependencies.
|
|
using | deps_vector_t = typename std::vector<dep_sd_ptr> |
| | The type of a vector of dependencies of this variable.
|
template<typename UncertainType>
class sigma::detail_::Setter< UncertainType >
Modifies an unceratin variable.
This class provides a handle for operations to modify the private members of Uncertain instances.
- Template Parameters
-
| UncertainType | The type of the variable this will modify |
template<typename UncertainType>
Update/addition of derivatives.
Updates the map of dependencies and their derivatives with the provided map, while ignoring any new dependencies or contributions that are below the zero threshold. If any existing dependencies are reduced below the zero threshold, they will be removed from the dependencies map and the standard deviation will be updated accordingly.
- Parameters
-
| deps | The dependencies to update |
| dxda | The partial derivative of this variable with respect to the dependency |
- Exceptions
-
template<typename UncertainType>
Update of existing derivatives.
Updates the partial derivatives of the variable with respect to its dependencies, taking into account that some may be reduced below the zero threshold and need to be removed from the dependencies map. If so, the standard deviation will be updated accordingly.
- Parameters
-
| dxda | The partial derivative of the variable |
- Exceptions
-