solvable Class Reference

Wrapper for one dim equation solver. More...

#include <XeMath.h>

Inheritance diagram for solvable:
XeMath XeCore CI Exclusion PoissonCI

List of all members.

Public Member Functions

double Evaluate (double *x, double *p)
 Interface with the TF1 function.
virtual double getValue (double x)=0
 'f' to be implemented in the equation f(x)=0
void setLimits (double xmi, double xma)
 Set min and max.
void setSolverLimits (double xmi, double xma)
 solvable (double xmin, double xmax)
 Constructor.
 solvable ()
 Void constructor.
double solve (double y)
 return x such f(x)=y
virtual ~solvable ()
 Destructor.

Protected Attributes

double range
TF1 * theFunction
double xmax
double xmin

Detailed Description

Wrapper for one dim equation solver.

It is automatically scaled in order to find a solution between 0 and 1.


Constructor & Destructor Documentation

solvable::solvable ( double  xmin,
double  xmax 
)

Constructor.

Parameters:
xmin lower bound of the solution
xmax upper bound of the solution

Member Function Documentation

double solvable::Evaluate ( double *  x,
double *  p 
)

Interface with the TF1 function.

Parameters:
x pointer to parameter between 0 and 1 p unused
void solvable::setLimits ( double  xmi,
double  xma 
)

Set min and max.

Parameters:
xmi minimum value of solution
xma maximum value of solution
void solvable::setSolverLimits ( double  xmi,
double  xma 
)
Parameters:
xmi minimum value of solution
xma maximum value of solution
double solvable::solve ( double  y  ) 

return x such f(x)=y

Parameters:
y value for which solution is searched

Member Data Documentation

double solvable::range [protected]

xmax-xmin

TF1* solvable::theFunction [protected]

Pointer to built-in function to be solved

double solvable::xmax [protected]

Upper bound of the solution

double solvable::xmin [protected]

lower bound of the solution


The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1