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

A binary functor to compute the simple average of 2 numbers. More...

#include <VectorHelper.h>

Public Member Functions

operator() (const T &x, const T &y) const
 Return the average of the two arguments. More...
 
 SimpleAverage ()=default
 

Detailed Description

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

A binary functor to compute the simple average of 2 numbers.

Definition at line 221 of file VectorHelper.h.

Constructor & Destructor Documentation

◆ SimpleAverage()

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

Member Function Documentation

◆ operator()()

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

Return the average of the two arguments.

Definition at line 224 of file VectorHelper.h.

References Mantid::Geometry::x, and Mantid::Geometry::y.


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