FairRoot/PandaRoot
Public Member Functions | Public Attributes | Private Member Functions | List of all members
StepError Struct Reference

Structure to hold the per step error values. More...

#include <PndMvaUtil.h>

Public Member Functions

 StepError ()
 Constructor. More...
 
 StepError (size_t step, float trErr, float tsErr, std::map< std::string, float > const &MisClsTest, std::map< std::string, float > const &MisClsTrain)
 
virtual ~StepError ()
 Destructor. More...
 
 StepError (StepError const &ot)
 Copy! More...
 
StepErroroperator= (StepError const &ot)
 Assignment. More...
 

Public Attributes

unsigned int m_step
 
float m_trErr
 Step number. More...
 
float m_tsErr
 Train Error. More...
 
std::map< std::string, float > m_MisClsTest
 Test Error. More...
 
std::map< std::string, float > m_MisClsTrain
 

Private Member Functions

bool operator< (StepError const &other) const
 Operator <. More...
 
bool operator> (StepError const &other) const
 Operator > More...
 

Detailed Description

Structure to hold the per step error values.

Definition at line 22 of file PndMvaUtil.h.

Constructor & Destructor Documentation

StepError::StepError ( )
inline

Constructor.

Definition at line 25 of file PndMvaUtil.h.

26  : m_step(0), m_trErr(0.0), m_tsErr(0.0),
27  m_MisClsTest ( std::map <std::string, float>() ),
28  m_MisClsTrain( std::map <std::string, float>() )
29  {};
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:75
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:77
unsigned int m_step
Definition: PndMvaUtil.h:71
float m_trErr
Step number.
Definition: PndMvaUtil.h:74
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:76
StepError::StepError ( size_t  step,
float  trErr,
float  tsErr,
std::map< std::string, float > const &  MisClsTest,
std::map< std::string, float > const &  MisClsTrain 
)
inlineexplicit
Parameters
stepCurrents step.
trErrCurrent training error.
tsErrCurrent test error.
MisClsTestMis-classified test events per label.
MisClsTrainMis-classified train events per label.

Definition at line 38 of file PndMvaUtil.h.

42  : m_step(step), m_trErr(trErr), m_tsErr(tsErr),
43  m_MisClsTest (MisClsTest),
44  m_MisClsTrain(MisClsTrain)
45  {};
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:75
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:77
unsigned int m_step
Definition: PndMvaUtil.h:71
float m_trErr
Step number.
Definition: PndMvaUtil.h:74
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:76
virtual StepError::~StepError ( )
inlinevirtual

Destructor.

Definition at line 48 of file PndMvaUtil.h.

49  {};
StepError::StepError ( StepError const &  ot)
inline

Copy!

Definition at line 52 of file PndMvaUtil.h.

53  : m_step(ot.m_step), m_trErr(ot.m_trErr), m_tsErr(ot.m_tsErr),
54  m_MisClsTest (ot.m_MisClsTest),
55  m_MisClsTrain(ot.m_MisClsTrain)
56  {};
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:75
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:77
unsigned int m_step
Definition: PndMvaUtil.h:71
float m_trErr
Step number.
Definition: PndMvaUtil.h:74
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:76

Member Function Documentation

bool StepError::operator< ( StepError const &  other) const
inlineprivate

Operator <.

StepError& StepError::operator= ( StepError const &  ot)
inline

Assignment.

Definition at line 59 of file PndMvaUtil.h.

References m_MisClsTest, m_MisClsTrain, m_step, m_trErr, and m_tsErr.

60  {
61  // check for self-assignment
62  if (this != &ot)
63  {// Not equal, thus deep copy
64  this->m_step = ot.m_step;
65  this->m_trErr = ot.m_trErr;
66  this->m_tsErr = ot.m_tsErr;
67  this->m_MisClsTest = ot.m_MisClsTest;
68  this->m_MisClsTrain = ot.m_MisClsTrain;
69  }
70  return (*this);
71  };
float m_tsErr
Train Error.
Definition: PndMvaUtil.h:75
std::map< std::string, float > m_MisClsTrain
Definition: PndMvaUtil.h:77
unsigned int m_step
Definition: PndMvaUtil.h:71
float m_trErr
Step number.
Definition: PndMvaUtil.h:74
std::map< std::string, float > m_MisClsTest
Test Error.
Definition: PndMvaUtil.h:76
bool StepError::operator> ( StepError const &  other) const
inlineprivate

Operator >

Member Data Documentation

std::map<std::string, float> StepError::m_MisClsTest

Test Error.

Mis-classified test events/label

Definition at line 76 of file PndMvaUtil.h.

Referenced by operator=().

std::map<std::string, float> StepError::m_MisClsTrain

Mis-classified train events/label

Definition at line 77 of file PndMvaUtil.h.

Referenced by operator=().

unsigned int StepError::m_step

Definition at line 71 of file PndMvaUtil.h.

Referenced by operator=().

float StepError::m_trErr

Step number.

Definition at line 74 of file PndMvaUtil.h.

Referenced by operator=().

float StepError::m_tsErr

Train Error.

Definition at line 75 of file PndMvaUtil.h.

Referenced by operator=().


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