#include <ParabolicInterpolator.h>
Definition at line 18 of file ParabolicInterpolator.h.
ParabolicInterpolator::ParabolicInterpolator |
( |
const Point |
xy1, |
|
|
const Point & |
xy2, |
|
|
double |
c |
|
) |
| |
Definition at line 9 of file ParabolicInterpolator.cxx.
12 if ( fabs(dx) < 1.
e-20 )
return;
const Point & xy1() const
const Point & xy2() const
double ParabolicInterpolator::a |
( |
| ) |
const |
|
inline |
double ParabolicInterpolator::b |
( |
| ) |
const |
|
inline |
double ParabolicInterpolator::c |
( |
| ) |
const |
|
inline |
TF1 * ParabolicInterpolator::getTF1 |
( |
Name |
fnam = "parint" , |
|
|
double |
x1 = 0.0 , |
|
|
double |
x2 = 0.0 |
|
) |
| const |
Definition at line 19 of file ParabolicInterpolator.cxx.
20 const Name sfun =
"[2]*(x-[0]) + [3]*(x-[1]) + [4]*(x-[0])*(x-[1])";
21 TF1* pf =
new TF1(fnam.c_str(), sfun.c_str(),
x1,
x2);
22 pf->SetParName(0,
"x1");
23 pf->SetParName(1,
"x2");
24 pf->SetParName(2,
"a");
25 pf->SetParName(3,
"b");
26 pf->SetParName(4,
"c");
27 pf->SetParameter(0,
xy1().
x);
28 pf->SetParameter(1,
xy2().
x);
29 pf->SetParameter(2,
a());
30 pf->SetParameter(3,
b());
31 pf->SetParameter(4,
c());
ChannelGroupService::Name Name
const Point & xy1() const
const Point & xy2() const
const Point& ParabolicInterpolator::xy1 |
( |
| ) |
const |
|
inline |
const Point& ParabolicInterpolator::xy2 |
( |
| ) |
const |
|
inline |
double ParabolicInterpolator::m_a |
|
private |
double ParabolicInterpolator::m_b |
|
private |
double ParabolicInterpolator::m_c |
|
private |
Point ParabolicInterpolator::m_xy1 |
|
private |
Point ParabolicInterpolator::m_xy2 |
|
private |
The documentation for this class was generated from the following files: