DmxStatTypes Namespace Reference

Typedefs

typedef enum
DmxStatTypes::EStatType 
StatType_t

Enumerations

enum  EStatType { kNone, kChi2, kRms }

Functions

std::string GetStatTypeString (EStatType statistic)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kNone 
kChi2 
kRms 

Definition at line 23 of file DmxStatTypes.h.

00023                          {
00024       kNone,
00025       kChi2,
00026       kRms
00027    } StatType_t;


Function Documentation

string DmxStatTypes::GetStatTypeString ( EStatType  statistic  ) 

Definition at line 19 of file DmxStatTypes.cxx.

References kChi2, kRms, Msg::kWarning, and MSG.

00019                                                           {
00020 //  Purpose:  Convert enumerated statistic to an statistic string.
00021 //
00022 //  Argument: statistic: enumerated EStatistic described in Dmx.h.
00023 //
00024 //  Return:   statistic string. If unknown, returns "UNKNOWN".
00025 //
00026 //  Contact:  B. Rebel
00027 //
00028    switch ( statistic ) {
00029    case kChi2:   return "Chi2";
00030    case kRms:    return "RMS";
00031    default:
00032       MSG("Dmx",Msg::kWarning)
00033          << "Dmx::GetStatisticString with unknown value "
00034          << (int)statistic << endl;
00035       return "UNKNOWN";
00036    }
00037 }


Generated on 3 Oct 2018 for loon by  doxygen 1.6.1