37 AST_PROPERT(correction)
39 AST_PROPERT(perturbation)
41 AST_PROPERT(tolerance)
42 AST_PROPERT(totalCorrection)
49 bool active()
const {
return active_; }
50 void setActive(
bool active) { active_ = active; }
52 double correction()
const {
return correction_; }
53 void setCorrection(
double correction) { correction_ = correction; }
55 double maxStep()
const {
return maxStep_; }
56 void setMaxStep(
double maxStep) { maxStep_ = maxStep; }
58 double perturbation()
const {
return perturbation_; }
59 void setPerturbation(
double perturbation) { perturbation_ = perturbation; }
61 double scale()
const {
return scale_; }
62 void setScale(
double scale) { scale_ = scale; }
64 double tolerance()
const {
return tolerance_; }
65 void setTolerance(
double tolerance) { tolerance_ = tolerance; }
67 double totalCorrection()
const {
return totalCorrection_; }
68 void setTotalCorrection(
double totalCorrection) { totalCorrection_ = totalCorrection; }
71 errc_t setValue(
double value)
const;
74 errc_t getValue(
double& value)
const;
76 Expr* expr()
const {
return expr_.get(); }
77 void setExpr(
Expr* expr) { expr_ = expr; }
81 double correction_{0.0};
82 double maxStep_{100.0};
83 double perturbation_{0.1};
85 double tolerance_{1e-6};
86 double totalCorrection_{0.0};