OGS
|
Perturbs values according to a relative epsilon. The perturbation should not be less than a certain minimum.
Definition at line 125 of file NumericalDifferentiation.h.
#include <NumericalDifferentiation.h>
Public Member Functions | |
DefaultPerturbationStrategy (RelativeEpsilon const &rel_eps, MinimumPerturbation const &min_pert) | |
double | getPerturbation (double const value) const |
double | perturbIf (std::true_type, double value, double const plus_or_minus, Eigen::Index) const |
template<int N> | |
Eigen::Vector< double, N > | perturbIf (std::true_type, Eigen::Matrix< double, N, 1, Eigen::ColMajor, N, 1 > const &vec, double const plus_or_minus, Eigen::Index comp) const |
Static Public Member Functions | |
template<typename T > | |
static T const & | perturbIf (std::false_type, T const &value, double const, Eigen::Index) |
Private Attributes | |
double | rel_eps_ |
double | min_pert_ |
|
inline |
Definition at line 127 of file NumericalDifferentiation.h.
|
inline |
Definition at line 133 of file NumericalDifferentiation.h.
References min_pert_, and rel_eps_.
Referenced by perturbIf(), and perturbIf().
|
inlinestatic |
Definition at line 146 of file NumericalDifferentiation.h.
|
inline |
Definition at line 153 of file NumericalDifferentiation.h.
References getPerturbation().
|
inline |
Definition at line 160 of file NumericalDifferentiation.h.
References getPerturbation().
|
private |
Definition at line 173 of file NumericalDifferentiation.h.
Referenced by getPerturbation().
|
private |
Definition at line 172 of file NumericalDifferentiation.h.
Referenced by getPerturbation().