7 #include "../../App/ApplicationTools.h" 15 for (
size_t i = 0; i < functionParameters_.size(); i++)
19 const string name = p.
getName();
32 bool isInfinite = (!interval->finiteLowerBound()) || (!interval->finiteUpperBound());
35 if (!interval->strictLowerBound() && !interval->strictUpperBound())
39 double correctedValue = value;
49 else if (interval->strictLowerBound() && interval->strictUpperBound())
59 else if (!interval->strictLowerBound() && interval->strictUpperBound())
63 double correctedValue = value;
71 else if (interval->strictLowerBound() && !interval->strictUpperBound())
75 double correctedValue = value;
86 if (interval->strictLowerBound() && !interval->finiteUpperBound())
94 else if (!interval->strictLowerBound() && !interval->finiteUpperBound())
98 double correctedValue = value;
106 else if (!interval->finiteLowerBound() && interval->strictUpperBound())
114 else if (!interval->finiteLowerBound() && !interval->strictUpperBound())
118 double correctedValue = value;
148 for (
size_t i = 0; i < getNumberOfParameters(); ++i)
157 (*
ApplicationTools::error <<
"Oups, value " << x <<
" led to a constraint exception. The transformed value was " << getParameter_(i).getValue()).endLine();
double getLowerBound() const
An interval, either bounded or not, which can also have infinite bounds.
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
This class is designed to facilitate the manipulation of parameters.
The parameter list object.
virtual std::shared_ptr< const ConstraintInterface > getConstraint() const
Return the constraint associated to this parameter if there is one.
virtual void setValue(double value)
Set the value of this parameter.
virtual const std::string & getName() const
Get the name of this parameter.
virtual double getValue() const
Get the value of this parameter.
Exception thrown when a value do not match a given constraint.
std::string toString(T t)
General template method to convert to a string.