BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
This class defines a parabola of the form a*x*x + b*x + c
Definition at line 31 of file MnParabola.h.
Public Member Functions | |
MnParabola (double a, double b, double c) | |
~MnParabola () | |
double | A () const |
double | B () const |
double | C () const |
double | Min () const |
double | X_neg (double y) const |
double | X_pos (double y) const |
double | Y (double x) const |
double | YMin () const |
Private Attributes | |
double | fA |
double | fB |
double | fC |
|
inline |
Constructor that initializes the parabola with its three 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.
|
inline |
Definition at line 49 of file MnParabola.h.
|
inline |
Accessor to the coefficient of the quadratic term.
Definition at line 138 of file MnParabola.h.
References fA.
|
inline |
Accessor to the coefficient of the linear term.
Definition at line 149 of file MnParabola.h.
References fB.
|
inline |
Accessor to the coefficient of the constant term.
Definition at line 160 of file MnParabola.h.
References fC.
|
inline |
|
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) ?
y | the y Value for which the x Value is to be calculated. |
Definition at line 105 of file MnParabola.h.
|
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) ?
y | the y Value for which the x Value is to be calculated. |
Definition at line 83 of file MnParabola.h.
|
inline |
|
inline |
|
private |
|
private |
|
private |