HPCToolkit
Prof::Metric::StdDev Class Reference

#include <Metric-AExpr.hpp>

Inheritance diagram for Prof::Metric::StdDev:
Collaboration diagram for Prof::Metric::StdDev:

Public Types

typedef std::vector< AExpr * > AExprVec
 

Public Member Functions

 StdDev (AExpr **oprnds, uint numOprnds)
 
 ~StdDev ()
 
virtual double eval (const Metric::IData &mdata) const
 
virtual double evalNF (Metric::IData &mdata) const
 
virtual uint numAccum () const
 
virtual bool hasNumSrcVar () const
 
virtual uint numSrcFxd () const
 
virtual std::string combineString1 () const
 
virtual std::string combineString2 () const
 
virtual std::string finalizeString () const
 
virtual std::ostream & dumpMe (std::ostream &os=std::cout) const
 
virtual uint accumId (int i) const
 
void accumId (int i, uint x)
 
virtual uint numSrcVarId () const
 
void numSrcVarId (uint x)
 
double & accumVar (int i, Metric::IData &mdata) const
 
virtual std::string toString () const
 
virtual std::ostream & dump (std::ostream &os=std::cout) const
 
std::string combineString1Min () const
 
std::string finalizeStringMin () const
 
std::string combineString1Max () const
 
std::string finalizeStringMax () const
 
std::string combineString1StdDev () const
 
std::string combineString2StdDev () const
 
std::string combineString1Sum () const
 
std::string finalizeStringSum () const
 
std::string combineString1Mean () const
 
std::string finalizeStringMean () const
 
std::string finalizeStringStdDev (std::string *meanRet=NULL) const
 
std::string finalizeStringCoefVar () const
 
std::string finalizeStringRStdDev () const
 
std::string combineString1NumSource () const
 
std::string finalizeStringNumSource () const
 
std::string accumStr (int i) const
 
std::string numSrcStr () const
 
std::string numSrcFxdStr () const
 
std::string numSrcVarStr () const
 
void ddump () const
 

Static Public Member Functions

static bool isok (double x)
 
static double & var (Metric::IData &mdata, uint mId)
 

Protected Types

enum  { maxAccums = 2 }
 

Protected Member Functions

double evalStdDevNF (Metric::IData &mdata, AExpr **opands, uint sz) const
 

Static Protected Member Functions

static double evalSum (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static std::pair< double, double > evalSumSquares (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static double evalMean (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static std::pair< double, double > evalVariance (const Metric::IData &mdata, AExpr **opands, uint sz)
 
static void dump_opands (std::ostream &os, AExpr **opands, uint sz, const char *sep=", ")
 

Protected Attributes

uint m_accumId [maxAccums]
 
uint m_numSrcVarId
 

Private Attributes

AExpr ** m_opands
 
uint m_sz
 

Detailed Description

Definition at line 875 of file Metric-AExpr.hpp.

Member Typedef Documentation

◆ AExprVec

typedef std::vector<AExpr*> Prof::Metric::AExpr::AExprVec
inherited

Definition at line 117 of file Metric-AExpr.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
maxAccums 

Definition at line 330 of file Metric-IDBExpr.hpp.

Constructor & Destructor Documentation

◆ StdDev()

Prof::Metric::StdDev::StdDev ( AExpr **  oprnds,
uint  numOprnds 
)
inline

Definition at line 880 of file Metric-AExpr.hpp.

Here is the call graph for this function:

◆ ~StdDev()

Prof::Metric::StdDev::~StdDev ( )

Definition at line 436 of file Metric-AExpr.cpp.

Member Function Documentation

◆ accumId() [1/2]

virtual uint Prof::Metric::AExpr::accumId ( int  i) const
inlinevirtualinherited

Implements Prof::Metric::IDBExpr.

Definition at line 178 of file Metric-AExpr.hpp.

Here is the caller graph for this function:

◆ accumId() [2/2]

void Prof::Metric::AExpr::accumId ( int  i,
uint  x 
)
inlineinherited

Definition at line 182 of file Metric-AExpr.hpp.

◆ accumStr()

std::string Prof::Metric::IDBExpr::accumStr ( int  i) const
inlineinherited

Definition at line 274 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ accumVar()

double& Prof::Metric::AExpr::accumVar ( int  i,
Metric::IData mdata 
) const
inlineinherited

Definition at line 227 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1()

virtual std::string Prof::Metric::StdDev::combineString1 ( ) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 912 of file Metric-AExpr.hpp.

Here is the call graph for this function:

◆ combineString1Max()

std::string Prof::Metric::IDBExpr::combineString1Max ( ) const
inlineinherited

Definition at line 149 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1Mean()

std::string Prof::Metric::IDBExpr::combineString1Mean ( ) const
inlineinherited

Definition at line 192 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1Min()

std::string Prof::Metric::IDBExpr::combineString1Min ( ) const
inlineinherited

Definition at line 136 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1NumSource()

std::string Prof::Metric::IDBExpr::combineString1NumSource ( ) const
inlineinherited

Definition at line 253 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1StdDev()

std::string Prof::Metric::IDBExpr::combineString1StdDev ( ) const
inlineinherited

Definition at line 162 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString1Sum()

std::string Prof::Metric::IDBExpr::combineString1Sum ( ) const
inlineinherited

Definition at line 179 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ combineString2()

virtual std::string Prof::Metric::StdDev::combineString2 ( ) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 916 of file Metric-AExpr.hpp.

Here is the call graph for this function:

◆ combineString2StdDev()

std::string Prof::Metric::IDBExpr::combineString2StdDev ( ) const
inlineinherited

Definition at line 170 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ddump()

void Prof::Metric::IDBExpr::ddump ( ) const
inherited

Definition at line 85 of file Metric-IDBExpr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump()

virtual std::ostream& Prof::Metric::AExpr::dump ( std::ostream &  os = std::cout) const
inlinevirtualinherited

Reimplemented from Prof::Metric::IDBExpr.

Definition at line 240 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_opands()

void Prof::Metric::AExpr::dump_opands ( std::ostream &  os,
AExpr **  opands,
uint  sz,
const char *  sep = ", " 
)
staticprotectedinherited

Definition at line 105 of file Metric-AExpr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpMe()

std::ostream & Prof::Metric::StdDev::dumpMe ( std::ostream &  os = std::cout) const
virtual

Implements Prof::Metric::AExpr.

Definition at line 457 of file Metric-AExpr.cpp.

Here is the call graph for this function:

◆ eval()

double Prof::Metric::StdDev::eval ( const Metric::IData mdata) const
virtual

Implements Prof::Metric::AExpr.

Definition at line 446 of file Metric-AExpr.cpp.

Here is the call graph for this function:

◆ evalMean()

static double Prof::Metric::AExpr::evalMean ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 284 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalNF()

virtual double Prof::Metric::StdDev::evalNF ( Metric::IData mdata) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 890 of file Metric-AExpr.hpp.

Here is the call graph for this function:

◆ evalStdDevNF()

double Prof::Metric::AExpr::evalStdDevNF ( Metric::IData mdata,
AExpr **  opands,
uint  sz 
) const
inlineprotectedinherited

Definition at line 311 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalSum()

static double Prof::Metric::AExpr::evalSum ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 258 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalSumSquares()

static std::pair<double, double> Prof::Metric::AExpr::evalSumSquares ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 270 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ evalVariance()

static std::pair<double, double> Prof::Metric::AExpr::evalVariance ( const Metric::IData mdata,
AExpr **  opands,
uint  sz 
)
inlinestaticprotectedinherited

Definition at line 294 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeString()

virtual std::string Prof::Metric::StdDev::finalizeString ( ) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 920 of file Metric-AExpr.hpp.

Here is the call graph for this function:

◆ finalizeStringCoefVar()

std::string Prof::Metric::IDBExpr::finalizeStringCoefVar ( ) const
inlineinherited

Definition at line 233 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringMax()

std::string Prof::Metric::IDBExpr::finalizeStringMax ( ) const
inlineinherited

Definition at line 157 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringMean()

std::string Prof::Metric::IDBExpr::finalizeStringMean ( ) const
inlineinherited

Definition at line 200 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringMin()

std::string Prof::Metric::IDBExpr::finalizeStringMin ( ) const
inlineinherited

Definition at line 144 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringNumSource()

std::string Prof::Metric::IDBExpr::finalizeStringNumSource ( ) const
inlineinherited

Definition at line 262 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringRStdDev()

std::string Prof::Metric::IDBExpr::finalizeStringRStdDev ( ) const
inlineinherited

Definition at line 243 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringStdDev()

std::string Prof::Metric::IDBExpr::finalizeStringStdDev ( std::string *  meanRet = NULL) const
inlineinherited

Definition at line 214 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ finalizeStringSum()

std::string Prof::Metric::IDBExpr::finalizeStringSum ( ) const
inlineinherited

Definition at line 187 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasNumSrcVar()

virtual bool Prof::Metric::StdDev::hasNumSrcVar ( ) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 903 of file Metric-AExpr.hpp.

◆ isok()

static bool Prof::Metric::AExpr::isok ( double  x)
inlinestaticinherited

Definition at line 152 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numAccum()

virtual uint Prof::Metric::StdDev::numAccum ( ) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 899 of file Metric-AExpr.hpp.

◆ numSrcFxd()

virtual uint Prof::Metric::StdDev::numSrcFxd ( ) const
inlinevirtual

Reimplemented from Prof::Metric::AExpr.

Definition at line 907 of file Metric-AExpr.hpp.

◆ numSrcFxdStr()

std::string Prof::Metric::IDBExpr::numSrcFxdStr ( ) const
inlineinherited

Definition at line 302 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numSrcStr()

std::string Prof::Metric::IDBExpr::numSrcStr ( ) const
inlineinherited

Definition at line 294 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numSrcVarId() [1/2]

virtual uint Prof::Metric::AExpr::numSrcVarId ( ) const
inlinevirtualinherited

Implements Prof::Metric::IDBExpr.

Definition at line 210 of file Metric-AExpr.hpp.

◆ numSrcVarId() [2/2]

void Prof::Metric::AExpr::numSrcVarId ( uint  x)
inlineinherited

Definition at line 214 of file Metric-AExpr.hpp.

◆ numSrcVarStr()

std::string Prof::Metric::IDBExpr::numSrcVarStr ( ) const
inlineinherited

Definition at line 310 of file Metric-IDBExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

std::string Prof::Metric::AExpr::toString ( ) const
virtualinherited

Reimplemented from Prof::Metric::IDBExpr.

Definition at line 96 of file Metric-AExpr.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ var()

static double& Prof::Metric::AExpr::var ( Metric::IData mdata,
uint  mId 
)
inlinestaticinherited

Definition at line 223 of file Metric-AExpr.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_accumId

uint Prof::Metric::AExpr::m_accumId[maxAccums]
protectedinherited

Definition at line 327 of file Metric-AExpr.hpp.

◆ m_numSrcVarId

uint Prof::Metric::AExpr::m_numSrcVarId
protectedinherited

Definition at line 328 of file Metric-AExpr.hpp.

◆ m_opands

AExpr** Prof::Metric::StdDev::m_opands
private

Definition at line 932 of file Metric-AExpr.hpp.

◆ m_sz

uint Prof::Metric::StdDev::m_sz
private

Definition at line 933 of file Metric-AExpr.hpp.


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