Class to hold collection (x,y) points and provide interpolation between them, where y are complex numbers. More...
#include "utl/TabulatedFunctionComplexLgAmpPhase.h"
Public Types | |
typedef std::vector< double > | Array |
typedef std::vector < utl::ComplexLgAmpPhase > | ArrayComplex |
typedef ConstTabulatedFunctionComplexLgAmpPhaseIterator | ConstIterator |
typedef TabulatedFunctionComplexLgAmpPhaseIterator | Iterator |
Public Member Functions | |
Iterator | Begin () |
ConstIterator | Begin () const |
void | Clear () |
Iterator | End () |
ConstIterator | End () const |
ConstIterator | FindX (const double x) const |
ConstIterator | FindY (const utl::ComplexLgAmpPhase &y) const |
double | GetBoundaryTolerance () const |
unsigned int | GetNPoints () const |
const double & | GetX (const unsigned int idx) const |
double & | GetX (const unsigned int idx) |
const utl::ComplexLgAmpPhase & | GetY (const unsigned int idx) const |
Interpolate the Y value with a polyDegree polynomial. More... | |
utl::ComplexLgAmpPhase & | GetY (const unsigned int idx) |
Iterator | Insert (const double x, const utl::ComplexLgAmpPhase &y) |
bool | IsInValidRange (const double x) const |
bool | operator!= (const TabulatedFunctionComplexLgAmpPhase &t) const |
TabulatedFunctionComplexLgAmpPhase & | operator*= (const TabulatedFunctionComplexLgAmpPhase &rhs) |
multiply the current TabulatedFunctionComplexLgAmpPhase with another one More... | |
bool | operator== (const TabulatedFunctionComplexLgAmpPhase &t) const |
PairComplexLgAmpPhase | operator[] (const int idx) const |
Note: cannot be used in assignment. More... | |
void | Pow (const double power) |
calculate the power of a TabulatedFunctionComplexLgAmpPhase (correctly treating amplitude and phase) More... | |
void | PushBack (const double x, const utl::ComplexLgAmpPhase &y) |
void | SetBoundaryTolerance (const double tolerance) |
double | SumX () const |
return the sum of X values More... | |
TabulatedFunctionComplexLgAmpPhase (const double boundaryTolerance=1e-3) | |
TabulatedFunctionComplexLgAmpPhase (const std::vector< double > &xValues, const std::vector< utl::ComplexLgAmpPhase > &yValues, const double boundaryTolerance=1e-3) | |
Array::const_reference | XBack () const |
read-only reference to back of array of X More... | |
Array::iterator | XBegin () |
begin of array of X More... | |
Array::const_iterator | XBegin () const |
begin of array of X More... | |
Array::iterator | XEnd () |
end of array of X More... | |
Array::const_iterator | XEnd () const |
end of array of X More... | |
Array::const_reference | XFront () const |
read-only reference to front of array of X More... | |
utl::ComplexLgAmpPhase | Y (const double x) const |
Get or interpolate the Y value that corresponds to parameter x . More... | |
ArrayComplex::const_reference | YBack () const |
read-only reference to back of array of Y More... | |
ArrayComplex::iterator | YBegin () |
begin of array of Y More... | |
ArrayComplex::const_iterator | YBegin () const |
begin of array of Y More... | |
ArrayComplex::iterator | YEnd () |
end of array of Y More... | |
ArrayComplex::const_iterator | YEnd () const |
end of array of Y More... | |
ArrayComplex::const_reference | YFront () const |
read-only reference to front of array of Y More... | |
virtual | ~TabulatedFunctionComplexLgAmpPhase () |
Protected Member Functions | |
void | FillTable (const std::vector< double > &xValues, const std::vector< utl::ComplexLgAmpPhase > &yValues) |
Protected Attributes | |
double | fBoundaryTolerance |
Array | fX |
ArrayComplex | fY |
Class to hold collection (x,y) points and provide interpolation between them, where y are complex numbers.
Definition at line 33 of file TabulatedFunctionComplexLgAmpPhase.h.
typedef std::vector<double> utl::TabulatedFunctionComplexLgAmpPhase::Array |
Definition at line 36 of file TabulatedFunctionComplexLgAmpPhase.h.
typedef std::vector<utl::ComplexLgAmpPhase> utl::TabulatedFunctionComplexLgAmpPhase::ArrayComplex |
Definition at line 37 of file TabulatedFunctionComplexLgAmpPhase.h.
typedef ConstTabulatedFunctionComplexLgAmpPhaseIterator utl::TabulatedFunctionComplexLgAmpPhase::ConstIterator |
Definition at line 39 of file TabulatedFunctionComplexLgAmpPhase.h.
typedef TabulatedFunctionComplexLgAmpPhaseIterator utl::TabulatedFunctionComplexLgAmpPhase::Iterator |
Definition at line 38 of file TabulatedFunctionComplexLgAmpPhase.h.
|
inline |
Definition at line 41 of file TabulatedFunctionComplexLgAmpPhase.h.
|
inline |
Definition at line 44 of file TabulatedFunctionComplexLgAmpPhase.h.
References FillTable().
|
inlinevirtual |
Definition at line 52 of file TabulatedFunctionComplexLgAmpPhase.h.
|
inline |
Definition at line 63 of file TabulatedFunctionComplexLgAmpPhase.h.
Referenced by testTabulatedFunctionComplexLgAmpPhase::testMultiplication().
|
inline |
Definition at line 69 of file TabulatedFunctionComplexLgAmpPhase.h.
|
inline |
Definition at line 59 of file TabulatedFunctionComplexLgAmpPhase.h.
|
inline |
Definition at line 66 of file TabulatedFunctionComplexLgAmpPhase.h.
Referenced by testTabulatedFunctionComplexLgAmpPhase::testMultiplication().
|
inline |
Definition at line 72 of file TabulatedFunctionComplexLgAmpPhase.h.
|
protected |
Definition at line 26 of file TabulatedFunctionComplexLgAmpPhase.cc.
References ERROR, and std::swap().
Referenced by TabulatedFunctionComplexLgAmpPhase().
ConstTabulatedFunctionComplexLgAmpPhaseIterator TabulatedFunctionComplexLgAmpPhase::FindX | ( | const double | x | ) | const |
Definition at line 128 of file TabulatedFunctionComplexLgAmpPhase.cc.
ConstTabulatedFunctionComplexLgAmpPhaseIterator TabulatedFunctionComplexLgAmpPhase::FindY | ( | const utl::ComplexLgAmpPhase & | y | ) | const |
Definition at line 143 of file TabulatedFunctionComplexLgAmpPhase.cc.
|
inline |
Definition at line 145 of file TabulatedFunctionComplexLgAmpPhase.h.
References fBoundaryTolerance.
|
inline |
Definition at line 54 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
Referenced by rdet::RChannelSQLManager::GetTFCLAPData(), operator*=(), testTabulatedFunctionComplexLgAmpPhase::testInterpolation(), and RDetectorTest::testRModel().
|
inline |
Definition at line 129 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
Referenced by operator*=(), and RDetectorTest::testRModel().
|
inline |
Definition at line 131 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
|
inline |
Interpolate the Y value with a polyDegree
polynomial.
Definition at line 126 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
Referenced by RDetectorTest::testRModel().
|
inline |
Definition at line 132 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
TabulatedFunctionComplexLgAmpPhaseIterator TabulatedFunctionComplexLgAmpPhase::Insert | ( | const double | x, |
const utl::ComplexLgAmpPhase & | y | ||
) |
Definition at line 154 of file TabulatedFunctionComplexLgAmpPhase.cc.
bool TabulatedFunctionComplexLgAmpPhase::IsInValidRange | ( | const double | x | ) | const |
Definition at line 165 of file TabulatedFunctionComplexLgAmpPhase.cc.
|
inline |
Definition at line 142 of file TabulatedFunctionComplexLgAmpPhase.h.
References operator==().
TabulatedFunctionComplexLgAmpPhase & TabulatedFunctionComplexLgAmpPhase::operator*= | ( | const TabulatedFunctionComplexLgAmpPhase & | rhs | ) |
multiply the current TabulatedFunctionComplexLgAmpPhase with another one
Definition at line 190 of file TabulatedFunctionComplexLgAmpPhase.cc.
References ERROR, GetNPoints(), GetX(), max, XBegin(), and Y().
|
inline |
Definition at line 139 of file TabulatedFunctionComplexLgAmpPhase.h.
Referenced by operator!=().
|
inline |
Note: cannot be used in assignment.
Definition at line 57 of file TabulatedFunctionComplexLgAmpPhase.h.
void TabulatedFunctionComplexLgAmpPhase::Pow | ( | const double | power | ) |
calculate the power of a TabulatedFunctionComplexLgAmpPhase (correctly treating amplitude and phase)
Definition at line 182 of file TabulatedFunctionComplexLgAmpPhase.cc.
Referenced by RdChannelResponseIncorporator::RdChannelResponseIncorporator::CalculateOverallResponse().
void TabulatedFunctionComplexLgAmpPhase::PushBack | ( | const double | x, |
const utl::ComplexLgAmpPhase & | y | ||
) |
Definition at line 64 of file TabulatedFunctionComplexLgAmpPhase.cc.
References utl::abs(), max, and WARNING.
Referenced by rdet::RModelsXMLManager::GetTFCLAPData(), rdet::RChannelSQLManager::GetTFCLAPData(), testTabulatedFunctionComplexLgAmpPhase::testInterpolation(), and testTabulatedFunctionComplexLgAmpPhase::testMultiplication().
|
inline |
Definition at line 147 of file TabulatedFunctionComplexLgAmpPhase.h.
References fBoundaryTolerance.
|
inline |
return the sum of X values
Definition at line 135 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
|
inline |
read-only reference to back of array of X
Definition at line 106 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
|
inline |
begin of array of X
Definition at line 76 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
Referenced by operator*=().
|
inline |
begin of array of X
Definition at line 79 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
|
inline |
end of array of X
Definition at line 88 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
|
inline |
end of array of X
Definition at line 91 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
|
inline |
read-only reference to front of array of X
Definition at line 100 of file TabulatedFunctionComplexLgAmpPhase.h.
References fX.
ComplexLgAmpPhase TabulatedFunctionComplexLgAmpPhase::Y | ( | const double | x | ) | const |
Get or interpolate the Y value that corresponds to parameter x
.
return the y value corresponding to x or do a linear interpolation throw OutOfBoundException if necessary
Definition at line 81 of file TabulatedFunctionComplexLgAmpPhase.cc.
References ERROR, and un2::Interpolate().
Referenced by RdChannelResponseIncorporator::RdChannelResponseIncorporator::ApplyResponse(), operator*=(), testTabulatedFunctionComplexLgAmpPhase::testInterpolation(), testTabulatedFunctionComplexLgAmpPhase::testMultiplication(), and RDetectorTest::testRModel().
|
inline |
read-only reference to back of array of Y
Definition at line 109 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
|
inline |
begin of array of Y
Definition at line 82 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
|
inline |
begin of array of Y
Definition at line 85 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
|
inline |
end of array of Y
Definition at line 94 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
|
inline |
end of array of Y
Definition at line 97 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
|
inline |
read-only reference to front of array of Y
Definition at line 103 of file TabulatedFunctionComplexLgAmpPhase.h.
References fY.
|
protected |
Definition at line 161 of file TabulatedFunctionComplexLgAmpPhase.h.
Referenced by GetBoundaryTolerance(), and SetBoundaryTolerance().
|
protected |
Definition at line 162 of file TabulatedFunctionComplexLgAmpPhase.h.
Referenced by Begin(), Clear(), End(), GetNPoints(), GetX(), operator==(), operator[](), SumX(), XBack(), XBegin(), XEnd(), and XFront().
|
protected |
Definition at line 163 of file TabulatedFunctionComplexLgAmpPhase.h.
Referenced by Begin(), Clear(), End(), GetY(), operator==(), operator[](), YBack(), YBegin(), YEnd(), and YFront().