sigma
0.0.0
|
Modifies an unceratin variable. More...
#include <setter.hpp>
Public Types | |
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. | |
Public Member Functions | |
Setter (uncertain_t &u) | |
Construct a Setter for a variable. | |
void | update_mean (value_t mean) |
Update the mean of the wrapped variable. | |
void | update_sd () |
Calculate the standatd deviation of m_x_ based on the uncertainty of its dependencies. | |
void | update_derivatives (value_t dxda, bool call_update_std=true) |
Update of existing derivatives. | |
void | update_derivatives (const deps_map_t &deps, value_t dxda, bool call_update_std=true) |
Update/addition of derivatives. | |
Modifies an unceratin variable.
This class provides a handle for operations to modify the private members of Uncertain instances.
UncertainType | The type of the variable this will modify |
|
inline |
Construct a Setter for a variable.
u | The uncertain variable *this will modify. |
none | No throw guarantee |
|
inline |
Update/addition of derivatives.
deps | The dependencies to update |
dxda | The partial derivative of this variable with respect to the dependency |
call_update_std | Whether or not to update the standard deviation after updating the dependencies. Primarily for minimizing repetitive work when multiple updates will be performed |
none | No throw guarantee |
|
inline |
Update of existing derivatives.
dxda | The partial derivative of the variable |
call_update_std | Whether or not to update the standard deviation after updating the dependencies. Primarily for minimizing repetitive work when multiple updates will be performed |
none | No throw guarantee |
|
inline |
Update the mean of the wrapped variable.
mean | The new mean value of the variable |
none | No throw guarantee |
|
inline |
Calculate the standatd deviation of m_x_ based on the uncertainty of its dependencies.
none | No throw guarantee |