|
Mantid
|
Public Member Functions | |
| virtual void | accumulate (T const &x) |
| Include values in the average. | |
| Averager () | |
| A small ABC to represent taking an average over a few values. | |
| virtual T | getAverage () const =0 |
| Retrieve the average of all included values. | |
| virtual void | separate (T const &x) |
| Remove values from the average. | |
| virtual T | term (T const &x) const =0 |
| A function returning a "term" in the average. | |
Protected Attributes | |
| unsigned int | m_npts |
| T | m_total |
Definition at line 19 of file Smoothing.cpp.
|
inline |
A small ABC to represent taking an average over a few values.
Definition at line 21 of file Smoothing.cpp.
|
inlinevirtual |
Include values in the average.
| x | the value to be included in the averaged |
Reimplemented in Mantid::Kernel::Smoothing::detail::GeometricAverager< T >.
Definition at line 34 of file Smoothing.cpp.
References Mantid::Kernel::Smoothing::detail::Averager< T >::m_npts, Mantid::Kernel::Smoothing::detail::Averager< T >::m_total, Mantid::Kernel::Smoothing::detail::Averager< T >::term(), and Mantid::Geometry::x.
Referenced by Mantid::Kernel::Smoothing::detail::boxcarSmoothWithFunction().
|
pure virtual |
Retrieve the average of all included values.
Implemented in Mantid::Kernel::Smoothing::detail::ArithmeticAverager< T >, Mantid::Kernel::Smoothing::detail::ErrorPropagationAverager< T >, Mantid::Kernel::Smoothing::detail::SumSquareAverager< T >, and Mantid::Kernel::Smoothing::detail::GeometricAverager< T >.
Referenced by Mantid::Kernel::Smoothing::detail::boxcarSmoothWithFunction().
|
inlinevirtual |
Remove values from the average.
| x | the value to be removed from the averaged |
Reimplemented in Mantid::Kernel::Smoothing::detail::GeometricAverager< T >.
Definition at line 43 of file Smoothing.cpp.
References Mantid::Kernel::Smoothing::detail::Averager< T >::m_npts, Mantid::Kernel::Smoothing::detail::Averager< T >::m_total, Mantid::Kernel::Smoothing::detail::Averager< T >::term(), and Mantid::Geometry::x.
Referenced by Mantid::Kernel::Smoothing::detail::boxcarSmoothWithFunction().
|
pure virtual |
A function returning a "term" in the average.
| x | the input value, from which the term is computed |
Implemented in Mantid::Kernel::Smoothing::detail::ArithmeticAverager< T >, Mantid::Kernel::Smoothing::detail::ErrorPropagationAverager< T >, Mantid::Kernel::Smoothing::detail::SumSquareAverager< T >, and Mantid::Kernel::Smoothing::detail::GeometricAverager< T >.
Referenced by Mantid::Kernel::Smoothing::detail::Averager< T >::accumulate(), and Mantid::Kernel::Smoothing::detail::Averager< T >::separate().
|
protected |
Definition at line 52 of file Smoothing.cpp.
Referenced by Mantid::Kernel::Smoothing::detail::Averager< T >::accumulate(), Mantid::Kernel::Smoothing::detail::GeometricAverager< T >::accumulate(), Mantid::Kernel::Smoothing::detail::ArithmeticAverager< T >::getAverage(), Mantid::Kernel::Smoothing::detail::ErrorPropagationAverager< T >::getAverage(), Mantid::Kernel::Smoothing::detail::SumSquareAverager< T >::getAverage(), Mantid::Kernel::Smoothing::detail::Averager< T >::separate(), and Mantid::Kernel::Smoothing::detail::GeometricAverager< T >::separate().
|
protected |
Definition at line 51 of file Smoothing.cpp.
Referenced by Mantid::Kernel::Smoothing::detail::Averager< T >::accumulate(), Mantid::Kernel::Smoothing::detail::GeometricAverager< T >::accumulate(), Mantid::Kernel::Smoothing::detail::GeometricAverager< T >::GeometricAverager(), Mantid::Kernel::Smoothing::detail::ArithmeticAverager< T >::getAverage(), Mantid::Kernel::Smoothing::detail::ErrorPropagationAverager< T >::getAverage(), Mantid::Kernel::Smoothing::detail::SumSquareAverager< T >::getAverage(), Mantid::Kernel::Smoothing::detail::Averager< T >::separate(), and Mantid::Kernel::Smoothing::detail::GeometricAverager< T >::separate().