Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
benchmark::Stat1< VType, NumType > Class Template Reference

#include <stat.h>

Public Types

typedef Stat1< VType, NumType > Self
 

Public Member Functions

void Clear ()
 
VType Mean () const
 
VType Mean (VType *stddev) const
 
NumType numSamples () const
 
Self operator* (const VType &k) const
 
Selfoperator*= (const VType &k)
 
Self operator+ (const Self &stat) const
 
Selfoperator+= (const Self &stat)
 
Self operator- (const Self &stat) const
 
Selfoperator-= (const Self &stat)
 
Selfoperator= (const Self &stat)
 
 Stat1 ()
 
 Stat1 (const Self &stat)
 
 Stat1 (const VType &dat)
 
 Stat1 (const VType &dat, const NumType &w)
 
 Stat1 (const VType *begin, const VType *end)
 
VType StdDev () const
 
VType Sum () const
 

Static Private Member Functions

template<typename SType >
static SType Sqr (const SType &dat)
 
template<typename SType >
static Vector2< SType > Sqr (const Vector2< SType > &dat)
 
template<typename SType >
static Vector3< SType > Sqr (const Vector3< SType > &dat)
 
template<typename SType >
static Vector4< SType > Sqr (const Vector4< SType > &dat)
 
template<typename SType >
static SType Sqrt (const SType &dat)
 
template<typename SType >
static Vector2< SType > Sqrt (const Vector2< SType > &dat)
 
template<typename SType >
static Vector3< SType > Sqrt (const Vector3< SType > &dat)
 
template<typename SType >
static Vector4< SType > Sqrt (const Vector4< SType > &dat)
 

Private Attributes

NumType numsamples_
 
VType sum_
 
VType sum_squares_
 

Detailed Description

template<typename VType, typename NumType>
class benchmark::Stat1< VType, NumType >

Definition at line 12 of file stat.h.

Member Typedef Documentation

◆ Self

template<typename VType , typename NumType >
typedef Stat1<VType, NumType> benchmark::Stat1< VType, NumType >::Self

Definition at line 32 of file stat.h.

Constructor & Destructor Documentation

◆ Stat1() [1/5]

template<typename VType , typename NumType >
benchmark::Stat1< VType, NumType >::Stat1 ( )
inline

Definition at line 34 of file stat.h.

◆ Stat1() [2/5]

template<typename VType , typename NumType >
benchmark::Stat1< VType, NumType >::Stat1 ( const VType &  dat)
inlineexplicit

Definition at line 36 of file stat.h.

◆ Stat1() [3/5]

template<typename VType , typename NumType >
benchmark::Stat1< VType, NumType >::Stat1 ( const VType *  begin,
const VType *  end 
)
inlineexplicit

Definition at line 43 of file stat.h.

◆ Stat1() [4/5]

template<typename VType , typename NumType >
benchmark::Stat1< VType, NumType >::Stat1 ( const VType &  dat,
const NumType &  w 
)
inline

Definition at line 50 of file stat.h.

◆ Stat1() [5/5]

template<typename VType , typename NumType >
benchmark::Stat1< VType, NumType >::Stat1 ( const Self stat)
inline

Definition at line 56 of file stat.h.

Member Function Documentation

◆ Clear()

template<typename VType , typename NumType >
void benchmark::Stat1< VType, NumType >::Clear ( )
inline

Definition at line 62 of file stat.h.

◆ Mean() [1/2]

template<typename VType , typename NumType >
VType benchmark::Stat1< VType, NumType >::Mean ( ) const
inline

Definition at line 111 of file stat.h.

◆ Mean() [2/2]

template<typename VType , typename NumType >
VType benchmark::Stat1< VType, NumType >::Mean ( VType *  stddev) const
inline

Definition at line 118 of file stat.h.

◆ numSamples()

template<typename VType , typename NumType >
NumType benchmark::Stat1< VType, NumType >::numSamples ( ) const
inline

Definition at line 105 of file stat.h.

◆ operator*()

template<typename VType , typename NumType >
Self benchmark::Stat1< VType, NumType >::operator* ( const VType &  k) const
inline

Definition at line 102 of file stat.h.

◆ operator*=()

template<typename VType , typename NumType >
Self& benchmark::Stat1< VType, NumType >::operator*= ( const VType &  k)
inline

Definition at line 88 of file stat.h.

◆ operator+()

template<typename VType , typename NumType >
Self benchmark::Stat1< VType, NumType >::operator+ ( const Self stat) const
inline

Definition at line 96 of file stat.h.

◆ operator+=()

template<typename VType , typename NumType >
Self& benchmark::Stat1< VType, NumType >::operator+= ( const Self stat)
inline

Definition at line 74 of file stat.h.

◆ operator-()

template<typename VType , typename NumType >
Self benchmark::Stat1< VType, NumType >::operator- ( const Self stat) const
inline

Definition at line 99 of file stat.h.

◆ operator-=()

template<typename VType , typename NumType >
Self& benchmark::Stat1< VType, NumType >::operator-= ( const Self stat)
inline

Definition at line 81 of file stat.h.

◆ operator=()

template<typename VType , typename NumType >
Self& benchmark::Stat1< VType, NumType >::operator= ( const Self stat)
inline

Definition at line 67 of file stat.h.

◆ Sqr() [1/4]

template<typename VType , typename NumType >
template<typename SType >
static SType benchmark::Stat1< VType, NumType >::Sqr ( const SType &  dat)
inlinestaticprivate

Definition at line 154 of file stat.h.

◆ Sqr() [2/4]

template<typename VType , typename NumType >
template<typename SType >
static Vector2<SType> benchmark::Stat1< VType, NumType >::Sqr ( const Vector2< SType > &  dat)
inlinestaticprivate

Definition at line 159 of file stat.h.

◆ Sqr() [3/4]

template<typename VType , typename NumType >
template<typename SType >
static Vector3<SType> benchmark::Stat1< VType, NumType >::Sqr ( const Vector3< SType > &  dat)
inlinestaticprivate

Definition at line 164 of file stat.h.

◆ Sqr() [4/4]

template<typename VType , typename NumType >
template<typename SType >
static Vector4<SType> benchmark::Stat1< VType, NumType >::Sqr ( const Vector4< SType > &  dat)
inlinestaticprivate

Definition at line 169 of file stat.h.

◆ Sqrt() [1/4]

template<typename VType , typename NumType >
template<typename SType >
static SType benchmark::Stat1< VType, NumType >::Sqrt ( const SType &  dat)
inlinestaticprivate

Definition at line 176 of file stat.h.

◆ Sqrt() [2/4]

template<typename VType , typename NumType >
template<typename SType >
static Vector2<SType> benchmark::Stat1< VType, NumType >::Sqrt ( const Vector2< SType > &  dat)
inlinestaticprivate

Definition at line 183 of file stat.h.

◆ Sqrt() [3/4]

template<typename VType , typename NumType >
template<typename SType >
static Vector3<SType> benchmark::Stat1< VType, NumType >::Sqrt ( const Vector3< SType > &  dat)
inlinestaticprivate

Definition at line 189 of file stat.h.

◆ Sqrt() [4/4]

template<typename VType , typename NumType >
template<typename SType >
static Vector4<SType> benchmark::Stat1< VType, NumType >::Sqrt ( const Vector4< SType > &  dat)
inlinestaticprivate

Definition at line 195 of file stat.h.

◆ StdDev()

template<typename VType , typename NumType >
VType benchmark::Stat1< VType, NumType >::StdDev ( ) const
inline

Definition at line 134 of file stat.h.

◆ Sum()

template<typename VType , typename NumType >
VType benchmark::Stat1< VType, NumType >::Sum ( ) const
inline

Definition at line 108 of file stat.h.

Member Data Documentation

◆ numsamples_

template<typename VType , typename NumType >
NumType benchmark::Stat1< VType, NumType >::numsamples_
private

Definition at line 143 of file stat.h.

◆ sum_

template<typename VType , typename NumType >
VType benchmark::Stat1< VType, NumType >::sum_
private

Definition at line 148 of file stat.h.

◆ sum_squares_

template<typename VType , typename NumType >
VType benchmark::Stat1< VType, NumType >::sum_squares_
private

Definition at line 149 of file stat.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06