Mantid
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Mantid::Kernel::VectorHelper::AddVariance< T > Struct Template Reference

Functor to deal with the increase in the error when adding (or subtracting) a number of counts. More...

#include <VectorHelper.h>

Public Member Functions

 AddVariance ()=default
 
operator() (const T &r, const T &x) const
 adds the square of the left-hand argument to the right hand argument and takes the square root More...
 

Detailed Description

template<class T>
struct Mantid::Kernel::VectorHelper::AddVariance< T >

Functor to deal with the increase in the error when adding (or subtracting) a number of counts.

More generally add errors in quadrature using the square of one of the errors (variance = error^2)

Definition at line 162 of file VectorHelper.h.

Constructor & Destructor Documentation

◆ AddVariance()

template<class T >
Mantid::Kernel::VectorHelper::AddVariance< T >::AddVariance ( )
default

Member Function Documentation

◆ operator()()

template<class T >
T Mantid::Kernel::VectorHelper::AddVariance< T >::operator() ( const T &  r,
const T &  x 
) const
inline

adds the square of the left-hand argument to the right hand argument and takes the square root

Definition at line 166 of file VectorHelper.h.

References Mantid::Geometry::x.


The documentation for this struct was generated from the following file: