|
Mantid
|
Represents taking the geometric mean. More...
Public Member Functions | |
| void | accumulate (T const &x) override |
| Include values in the average. | |
| GeometricAverager () | |
| T | getAverage () const override |
| Retrieve the average of all included values. | |
| void | separate (T const &x) override |
| Remove values from the average. | |
| T | term (T const &x) const override |
| A function returning a "term" in the average. | |
Public Member Functions inherited from Mantid::Kernel::Smoothing::detail::Averager< T > | |
| Averager () | |
| A small ABC to represent taking an average over a few values. | |
Additional Inherited Members | |
Protected Attributes inherited from Mantid::Kernel::Smoothing::detail::Averager< T > | |
| unsigned int | m_npts |
| T | m_total |
Represents taking the geometric mean.
Definition at line 74 of file Smoothing.cpp.
|
inline |
Definition at line 75 of file Smoothing.cpp.
References Mantid::Kernel::Smoothing::detail::Averager< T >::m_total.
|
inlineoverridevirtual |
Include values in the average.
| x | the value to be included in the averaged |
Reimplemented from Mantid::Kernel::Smoothing::detail::Averager< T >.
Definition at line 76 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::GeometricAverager< T >::term(), and Mantid::Geometry::x.
|
inlineoverridevirtual |
Retrieve the average of all included values.
Implements Mantid::Kernel::Smoothing::detail::Averager< T >.
Definition at line 89 of file Smoothing.cpp.
|
inlineoverridevirtual |
Remove values from the average.
| x | the value to be removed from the averaged |
Reimplemented from Mantid::Kernel::Smoothing::detail::Averager< T >.
Definition at line 82 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::GeometricAverager< T >::term(), and Mantid::Geometry::x.
|
inlineoverridevirtual |
A function returning a "term" in the average.
| x | the input value, from which the term is computed |
Implements Mantid::Kernel::Smoothing::detail::Averager< T >.
Definition at line 88 of file Smoothing.cpp.
References Mantid::Geometry::x.
Referenced by Mantid::Kernel::Smoothing::detail::GeometricAverager< T >::accumulate(), and Mantid::Kernel::Smoothing::detail::GeometricAverager< T >::separate().