This class defines a parabola of the form a*x*x + b*x + c.
- Author
- Fred James and Matthias Winkler; comments added by Andras Zsenei and Lorenzo Moneta
Definition at line 31 of file MnParabola.h.
|
| MnParabola (double a, double b, double c) |
| Constructor that initializes the parabola with its three parameters. More...
|
|
| ~MnParabola () |
|
double | A () const |
| Accessor to the coefficient of the quadratic term. More...
|
|
double | B () const |
| Accessor to the coefficient of the linear term. More...
|
|
double | C () const |
| Accessor to the coefficient of the constant term. More...
|
|
double | Min () const |
| Calculates the x coordinate of the Minimum of the parabola. More...
|
|
double | X_neg (double y) const |
| Calculates the smaller of the two x values corresponding to the given y Value. More...
|
|
double | X_pos (double y) const |
| Calculates the bigger of the two x values corresponding to the given y Value. More...
|
|
double | Y (double x) const |
| Evaluates the parabola a the point x. More...
|
|
double | YMin () const |
| Calculates the y coordinate of the Minimum of the parabola. More...
|
|
#include <Minuit2/MnParabola.h>
◆ MnParabola()
ROOT::Minuit2::MnParabola::MnParabola |
( |
double |
a, |
|
|
double |
b, |
|
|
double |
c |
|
) |
| |
|
inline |
Constructor that initializes the parabola with its three parameters.
- Parameters
-
a | the coefficient of the quadratic term |
b | the coefficient of the linear term |
c | the constant |
Definition at line 46 of file MnParabola.h.
◆ ~MnParabola()
ROOT::Minuit2::MnParabola::~MnParabola |
( |
| ) |
|
|
inline |
◆ A()
double ROOT::Minuit2::MnParabola::A |
( |
| ) |
const |
|
inline |
Accessor to the coefficient of the quadratic term.
- Returns
- the coefficient of the quadratic term.
Definition at line 138 of file MnParabola.h.
◆ B()
double ROOT::Minuit2::MnParabola::B |
( |
| ) |
const |
|
inline |
Accessor to the coefficient of the linear term.
- Returns
- the coefficient of the linear term.
Definition at line 149 of file MnParabola.h.
◆ C()
double ROOT::Minuit2::MnParabola::C |
( |
| ) |
const |
|
inline |
Accessor to the coefficient of the constant term.
- Returns
- the coefficient of the constant term.
Definition at line 160 of file MnParabola.h.
◆ Min()
double ROOT::Minuit2::MnParabola::Min |
( |
| ) |
const |
|
inline |
Calculates the x coordinate of the Minimum of the parabola.
- Returns
- x coordinate of the Minimum.
Definition at line 116 of file MnParabola.h.
◆ X_neg()
double ROOT::Minuit2::MnParabola::X_neg |
( |
double |
y | ) |
const |
|
inline |
Calculates the smaller of the two x values corresponding to the given y Value.
???????!!!!!!!!! And when there is none?? it looks like it will crash?? what is sqrt (-1.0) ?
- Parameters
-
y | the y Value for which the x Value is to be calculated. |
- Returns
- the smaller one of the two corresponding values.
Definition at line 105 of file MnParabola.h.
◆ X_pos()
double ROOT::Minuit2::MnParabola::X_pos |
( |
double |
y | ) |
const |
|
inline |
Calculates the bigger of the two x values corresponding to the given y Value.
???????!!!!!!!!! And when there is none?? it looks like it will crash?? what is sqrt (-1.0) ?
- Parameters
-
y | the y Value for which the x Value is to be calculated. |
- Returns
- the bigger one of the two corresponding values.
Definition at line 83 of file MnParabola.h.
◆ Y()
double ROOT::Minuit2::MnParabola::Y |
( |
double |
x | ) |
const |
|
inline |
Evaluates the parabola a the point x.
- Parameters
-
x | the coordinate where the parabola needs to be evaluated. |
- Returns
- the y coordinate of the parabola corresponding to x.
Definition at line 62 of file MnParabola.h.
◆ YMin()
double ROOT::Minuit2::MnParabola::YMin |
( |
| ) |
const |
|
inline |
Calculates the y coordinate of the Minimum of the parabola.
- Returns
- y coordinate of the Minimum.
Definition at line 127 of file MnParabola.h.
◆ fA
double ROOT::Minuit2::MnParabola::fA |
|
private |
◆ fB
double ROOT::Minuit2::MnParabola::fB |
|
private |
◆ fC
double ROOT::Minuit2::MnParabola::fC |
|
private |
The documentation for this class was generated from the following file: