37 AST_PROPERT(correction)
39 AST_PROPERT(perturbation)
41 AST_PROPERT(tolerance)
42 AST_PROPERT(totalCorrection)
50 bool active()
const {
return active_; }
51 void setActive(
bool active) { active_ = active; }
53 double correction()
const {
return correction_; }
54 void setCorrection(
double correction) { correction_ = correction; }
56 double maxStep()
const {
return maxStep_; }
57 void setMaxStep(
double maxStep) { maxStep_ = maxStep; }
59 double perturbation()
const {
return perturbation_; }
60 void setPerturbation(
double perturbation) { perturbation_ = perturbation; }
62 double scale()
const {
return scale_; }
63 void setScale(
double scale) { scale_ = scale; }
65 double tolerance()
const {
return tolerance_; }
66 void setTolerance(
double tolerance) { tolerance_ = tolerance; }
68 double totalCorrection()
const {
return totalCorrection_; }
69 void setTotalCorrection(
double totalCorrection) { totalCorrection_ = totalCorrection; }
71 Expr* expr()
const {
return expr_.get(); }
72 void setExpr(
Expr* expr) { expr_ = expr; }
75 errc_t setValue(
double value)
const;
78 errc_t getValue(
double& value)
const;
82 double correction_{0.0};
83 double maxStep_{100.0};
84 double perturbation_{0.1};
86 double tolerance_{1e-6};
87 double totalCorrection_{0.0};