#include <ScaledShiftedShape.h>
|
| | ScaledShiftedShape (const AbsShape &base, double scaling=1, double shift=0) |
| | Constructor
More...
|
| |
| | ScaledShiftedShape (const ScaledShiftedShape &other) |
| |
| virtual | ~ScaledShiftedShape () |
| |
| const AbsShape & | base () const |
| |
| double | scaling () const |
| |
| double | shift () const |
| |
| unsigned int | nPoints () const |
| |
| double | value (unsigned int i) const |
| |
| double | error (unsigned int i) const |
| |
| double | time (unsigned int i) const |
| |
| double | covariance (unsigned int i, unsigned int j) const |
| |
| TVectorD | values (int lwb, int upb) const |
| |
| int | findTimeInterval (double time) const |
| |
| int | interpolate (double time, double &value, double &error) const |
| |
| bool | interpolate (const AbsShape &other, TVectorD &values, CovMatrix &errors, int lwb=-1, int upb=-1) const |
| |
| int | interpolateDiff (double time, double &diff) const |
| |
| bool | interpolateDiff (const AbsShape &other, TVectorD &diffs, int lwb=-1, int upb=-1) const |
| |
| CovMatrix | covarianceMatrix (int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const |
| |
| CovMatrix | covarianceMatrix (unsigned int nPoints, bool withCorrs=true) const |
| |
| CovMatrix | invCovarianceMatrix (int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const |
| |
| CovMatrix | invCovarianceMatrix (unsigned int nPoints, bool withCorrs=true) const |
| |
| double | maxValue (bool withErrors=false) const |
| |
| double | minValue (bool withErrors=false) const |
| |
| int | maxPosition () const |
| |
| int | minPosition () const |
| |
| TGraphErrors * | graph (bool timeInUnitOfSamples=false) const |
| |
| SimpleShape * | resample (unsigned int nPts) const |
| |
Definition at line 17 of file ScaledShiftedShape.h.
◆ ScaledShiftedShape() [1/2]
| LArSamples::ScaledShiftedShape::ScaledShiftedShape |
( |
const AbsShape & |
base, |
|
|
double |
scaling = 1, |
|
|
double |
shift = 0 |
|
) |
| |
|
inline |
◆ ScaledShiftedShape() [2/2]
◆ ~ScaledShiftedShape()
| virtual LArSamples::ScaledShiftedShape::~ScaledShiftedShape |
( |
| ) |
|
|
inlinevirtual |
◆ base()
◆ covariance()
| double LArSamples::ScaledShiftedShape::covariance |
( |
unsigned int |
i, |
|
|
unsigned int |
j |
|
) |
| const |
|
inlinevirtual |
◆ covarianceMatrix() [1/2]
Definition at line 198 of file AbsShape.cxx.
202 if (lwb < 0 || upb < 0) { lwb = 0; upb =
nPoints() - 1; }
204 for (
int i = lwb;
i <= upb;
i++) {
205 for (
int j = lwb; j <= upb; j++) {
207 if (refErr.GetNrows() > 0)
cov += refErr(
i, j);
◆ covarianceMatrix() [2/2]
| CovMatrix AbsShape::covarianceMatrix |
( |
unsigned int |
nPoints, |
|
|
bool |
withCorrs = true |
|
) |
| const |
|
inherited |
◆ error()
| double LArSamples::ScaledShiftedShape::error |
( |
unsigned int |
i | ) |
const |
|
inlinevirtual |
◆ findTimeInterval()
| int AbsShape::findTimeInterval |
( |
double |
time | ) |
const |
|
inherited |
◆ graph()
| TGraphErrors * AbsShape::graph |
( |
bool |
timeInUnitOfSamples = false | ) |
const |
|
inherited |
◆ interpolate() [1/2]
| bool AbsShape::interpolate |
( |
const AbsShape & |
other, |
|
|
TVectorD & |
values, |
|
|
CovMatrix & |
errors, |
|
|
int |
lwb = -1, |
|
|
int |
upb = -1 |
|
) |
| const |
|
inherited |
Definition at line 147 of file AbsShape.cxx.
149 if (lwb < 0) lwb = 0;
150 if (upb < 0) upb =
other.nPoints() - 1;
151 values.ResizeTo(lwb, upb);
152 errors.ResizeTo(lwb, upb, lwb, upb);
153 int actualLwb = -1, actualUpb = upb;
154 for (
int i = lwb;
i <= upb;
i++) {
157 if (
stat == 0 && actualLwb < 0) actualLwb =
i;
158 if (
stat == +1) { actualUpb =
i - 1;
break; }
162 values.ResizeTo(actualLwb, actualUpb);
163 errors.ResizeTo(actualLwb, actualUpb, actualLwb, actualUpb);
164 return (actualLwb >= 0);
◆ interpolate() [2/2]
| int AbsShape::interpolate |
( |
double |
time, |
|
|
double & |
value, |
|
|
double & |
error |
|
) |
| const |
|
inherited |
◆ interpolateDiff() [1/2]
| bool AbsShape::interpolateDiff |
( |
const AbsShape & |
other, |
|
|
TVectorD & |
diffs, |
|
|
int |
lwb = -1, |
|
|
int |
upb = -1 |
|
) |
| const |
|
inherited |
Definition at line 168 of file AbsShape.cxx.
170 if (lwb < 0) lwb = 0;
171 if (upb < 0) upb =
other.nPoints() - 1;
172 diffs.ResizeTo(lwb, upb);
173 int actualLwb = -1, actualUpb = upb;
174 for (
int i = lwb;
i <= upb;
i++) {
177 if (
stat == 0 && actualLwb < 0) actualLwb =
i;
178 if (
stat == +1) { actualUpb =
i - 1;
break; }
181 diffs.ResizeTo(actualLwb, actualUpb);
182 return (actualLwb >= 0);
◆ interpolateDiff() [2/2]
| int AbsShape::interpolateDiff |
( |
double |
time, |
|
|
double & |
diff |
|
) |
| const |
|
inherited |
◆ invCovarianceMatrix() [1/2]
◆ invCovarianceMatrix() [2/2]
| CovMatrix AbsShape::invCovarianceMatrix |
( |
unsigned int |
nPoints, |
|
|
bool |
withCorrs = true |
|
) |
| const |
|
inherited |
◆ maxPosition()
| int AbsShape::maxPosition |
( |
| ) |
const |
|
inherited |
◆ maxValue()
| double AbsShape::maxValue |
( |
bool |
withErrors = false | ) |
const |
|
inherited |
- Returns
- sample max parameters
Definition at line 30 of file AbsShape.cxx.
◆ minPosition()
| int AbsShape::minPosition |
( |
| ) |
const |
|
inherited |
◆ minValue()
| double AbsShape::minValue |
( |
bool |
withErrors = false | ) |
const |
|
inherited |
◆ nPoints()
| unsigned int LArSamples::ScaledShiftedShape::nPoints |
( |
| ) |
const |
|
inlinevirtual |
◆ resample()
| SimpleShape * AbsShape::resample |
( |
unsigned int |
nPts | ) |
const |
|
inherited |
Definition at line 237 of file AbsShape.cxx.
242 double dT = (
t1 -
t0)/nPts;
244 for (
unsigned int i = 0;
i < nPts;
i++,
t += dT) {
247 if (
inRange != 0)
return nullptr;
◆ scaling()
| double LArSamples::ScaledShiftedShape::scaling |
( |
| ) |
const |
|
inline |
◆ shift()
| double LArSamples::ScaledShiftedShape::shift |
( |
| ) |
const |
|
inline |
◆ time()
| double LArSamples::ScaledShiftedShape::time |
( |
unsigned int |
i | ) |
const |
|
inlinevirtual |
◆ value()
| double LArSamples::ScaledShiftedShape::value |
( |
unsigned int |
i | ) |
const |
|
inlinevirtual |
◆ values()
| TVectorD AbsShape::values |
( |
int |
lwb, |
|
|
int |
upb |
|
) |
| const |
|
inherited |
Definition at line 135 of file AbsShape.cxx.
137 if (lwb < 0) lwb = 0;
140 TVectorD
vals(lwb, upb);
141 for (
int i = lwb;
i <= upb;
i++)
◆ m_base
◆ m_scaling
| double LArSamples::ScaledShiftedShape::m_scaling |
|
private |
◆ m_shift
| double LArSamples::ScaledShiftedShape::m_shift |
|
private |
The documentation for this class was generated from the following file: