Abstract base class for evaluating constraints. Users derive from this class and implement the eval() method. More...
#include <Base_Constrainer.h>
Public Member Functions | |
Constraint_Calculator (int nconstraints) | |
virtual bool | eval (const Column_Vector &x, const Column_Vector &y, Row_Vector &F, Matrix &Bx, Matrix &By)=0 |
Evaluate constraints at the point described by x and y (well-measured and poorly-measured variables, respectively). The results should be stored in F. Bx and By should be set to the gradients of F with respect to x and y, respectively. More... | |
int | nconstraints () const |
virtual | ~Constraint_Calculator () |
Private Attributes | |
int | _nconstraints |
Abstract base class for evaluating constraints. Users derive from this class and implement the eval() method.
Definition at line 130 of file Base_Constrainer.h.
hitfit::Constraint_Calculator::Constraint_Calculator | ( | int | nconstraints | ) |
Constructor.
nconstraints | Number of constraint equations. |
Definition at line 134 of file Base_Constrainer.cc.
|
inlinevirtual |
|
pure virtual |
Evaluate constraints at the point described by x and y (well-measured and poorly-measured variables, respectively). The results should be stored in F. Bx and By should be set to the gradients of F with respect to x and y, respectively.
x | Column_Vector of well-measured variables. |
y | Column_Vector of poorly-measured variables. |
F | Row_Vector contains the results of the constraint evaluation. |
Bx | Gradients of F with respect to x |
By | Gradients of F with respect to y |
Implemented in hitfit::Fourvec_Constraint_Calculator.
int hitfit::Constraint_Calculator::nconstraints | ( | ) | const |
Return the number of constraints.
Definition at line 143 of file Base_Constrainer.cc.
References _nconstraints.
Referenced by hitfit::Chisq_Constrainer::fit().
|
private |
Number of constraints functions.
Definition at line 202 of file Base_Constrainer.h.
Referenced by nconstraints().