CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
npstat::Private::AbsHelper< T, Unsigned > Struct Template Reference

#include <absDifference.h>

Public Types

typedef Private::AbsReturnType< T >::type return_type
 

Static Public Member Functions

static return_type delta (const T &v1, const T &v2)
 
static return_type value (const T &v1)
 

Detailed Description

template<typename T, int Unsigned = 0>
struct npstat::Private::AbsHelper< T, Unsigned >

Definition at line 49 of file absDifference.h.

Member Typedef Documentation

◆ return_type

template<typename T, int Unsigned = 0>
typedef Private::AbsReturnType<T>::type npstat::Private::AbsHelper< T, Unsigned >::return_type

Definition at line 50 of file absDifference.h.

Member Function Documentation

◆ delta()

template<typename T, int Unsigned = 0>
static return_type npstat::Private::AbsHelper< T, Unsigned >::delta ( const T v1,
const T v2 
)
inlinestatic

Definition at line 52 of file absDifference.h.

52 { return std::abs(v1 - v2); }

References funct::abs().

◆ value()

template<typename T, int Unsigned = 0>
static return_type npstat::Private::AbsHelper< T, Unsigned >::value ( const T v1)
inlinestatic

Definition at line 54 of file absDifference.h.

54 { return std::abs(v1); }

References funct::abs().

Referenced by average.Average::average().

funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22