52 double x = params_[0].getValue();
53 for(
unsigned int j = 0; j < p_.size(); j++)
56 xt_[j].setValue((p_[j].getValue()) + x * xi_[j]);
58 function_->setParameters(xt_);
65 return function_->getValue();
90 for(
unsigned int i = 0; i < p_.size(); i++)
94 p_.setParameter(i, ap);
102 for(
unsigned int i = 0; i < p_.size(); i++)
104 p_[i].removeConstraint();
Exception thrown when a parameter is not found, for instance in a ParameterList.
static std::string CONSTRAINTS_IGNORE
void init(const ParameterList &p, const std::vector< double > &xi)
This class allows to perform a correspondence analysis.
The parameter list object.
virtual void setMessageHandler(OutputStream *mh)
Set the message handler for this AutoParameter.
double getValue() const
Get the value of the function at the current point.
static std::string CONSTRAINTS_AUTO
const ParameterList & getParameters() const
Get all parameters available.
Exception thrown when a value do not match a given constraint.
void setParameters(const ParameterList ¶meters)
Set the point where the function must be computed.