Estimates the sensitivity of an Estimator with respect to a Perturbation.
More...
#include <Sensitivity.hpp>
|
|
virtual | ~Sensitivity () noexcept |
| | Virtual destructor (C++ Core Guidelines C.127)
|
| |
| virtual std::unique_ptr< Sensitivity > | Clone () const noexcept=0 |
| | Virtual constructor, used for deep copying a Sensitivity. More...
|
| |
| std::string | to_string (const Real total_weight) const noexcept |
| | Returns a string suitable for printing. Does not return bins since the parent Estimator will print it. More...
|
| |
|
Sensitivity & | operator+= (const Sensitivity &other) noexcept |
| | Add scores of other to this.
|
| |
| | Scorable (const std::string &name, const pugi::xml_node &bins_node) noexcept |
| | Constructs a Scorable from a bins node of an XML document. More...
|
| |
| | Scorable (const Scorable &estimator, const Perturbation &perturbation) noexcept |
| | Constructs an Scorable from an existing estimator and perturbation. More...
|
| |
|
virtual | ~Scorable () noexcept |
| | Virtual destructor (C++ Core Guidelines C.127)
|
| |
| virtual Real | GetScore (const Particle &p) const noexcept=0 |
| | Returns what a Particle would score. More...
|
| |
| virtual std::string | to_string (const Real total_weight) const noexcept=0 |
| | Returns a string suitable for printing. More...
|
| |
|
Real | GetScore (const size_t index, const Real total_weight) const noexcept |
| | Returns all scores; primarily for unit testing.
|
| |
|
Scorable & | operator+= (const Scorable &other) noexcept |
| | Add scores of other to this.
|
| |
|
|
const std::string | name |
| | Unique, user-defined identifier (C++ Core Guidelines C.131)
|
| |
Estimates the sensitivity of an Estimator with respect to a Perturbation.
◆ Clone()
| virtual std::unique_ptr< Sensitivity > Sensitivity::Clone |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ Create()
| static std::unique_ptr< Sensitivity > Sensitivity::Create |
( |
const pugi::xml_node & |
sensitivity_perturbation_node, |
|
|
const PerturbationSet & |
perturbations, |
|
|
const Estimator & |
estimator |
|
) |
| |
|
static |
Factory method to create a new Sensitivity from a perturbation child of a sensitivities node of an XML document.
- Exceptions
-
◆ to_string()
| std::string Sensitivity::to_string |
( |
const Real |
total_weight | ) |
const |
|
virtualnoexcept |
Returns a string suitable for printing. Does not return bins since the parent Estimator will print it.
Implements Scorable.
The documentation for this class was generated from the following file: