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

#include <PndMvaVariable.h>

Public Member Functions

 PndMvaVariable (std::string const &name="UNKNOWN_VAR", float normFactor=1.0, float mean=0.0, float min=0.0, float max=0.0)
 Constructor implementation. More...
 
virtual ~PndMvaVariable ()
 Destructor. More...
 
 PndMvaVariable (PndMvaVariable const &oth)
 Copy constructor. More...
 
PndMvaVariableoperator= (PndMvaVariable const &oth)
 Assignment operator. More...
 

Public Attributes

std::string Name
 
float NormFactor
 
float Mean
 
float Min
 
float Max
 

Private Member Functions

bool operator== (PndMvaVariable const &oth) const
 
bool operator> (PndMvaVariable const &oth) const
 
bool operator< (PndMvaVariable const &oth) const
 

Detailed Description

Struct to describe a single variable of the feature vector, storing its name and normalization factor.

Definition at line 17 of file PndMvaVariable.h.

Constructor & Destructor Documentation

PndMvaVariable::PndMvaVariable ( std::string const &  name = "UNKNOWN_VAR",
float  normFactor = 1.0,
float  mean = 0.0,
float  min = 0.0,
float  max = 0.0 
)
inlineexplicit

Constructor implementation.

Constructor.

Parameters
nameVariable name.
normFactornormalization factor for this variable.
meanCurrent variable sample mean value.

Definition at line 56 of file PndMvaVariable.h.

59  : Name(name),
60  NormFactor(normFactor),
61  Mean(mean),
62  Min(min),
63  Max(max)
64 {};
std::string Name
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:26
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:25
TString name
Double_t mean[nsteps]
Definition: dedx_bands.C:65
PndMvaVariable::~PndMvaVariable ( )
inlinevirtual

Destructor.

Definition at line 67 of file PndMvaVariable.h.

68 {};
PndMvaVariable::PndMvaVariable ( PndMvaVariable const &  oth)
inline

Copy constructor.

Definition at line 71 of file PndMvaVariable.h.

72  : Name(oth.Name),
73  NormFactor(oth.NormFactor),
74  Mean(oth.Mean),
75  Min(oth.Min),
76  Max(oth.Max)
77 {};
std::string Name

Member Function Documentation

bool PndMvaVariable::operator< ( PndMvaVariable const &  oth) const
private
PndMvaVariable & PndMvaVariable::operator= ( PndMvaVariable const &  oth)
inline

Assignment operator.

Definition at line 80 of file PndMvaVariable.h.

References Max, Mean, Min, Name, and NormFactor.

81 {
82  // check for self-assignment
83  if (this != &oth)
84  {// Not equal, thus deep copy
85  this->Name = oth.Name;
86  this->NormFactor = oth.NormFactor;
87  this->Mean = oth.Mean;
88  this->Min = oth.Min;
89  this->Max = oth.Max;
90  }
91  return (*this);
92 }// End of interface definition.
std::string Name
bool PndMvaVariable::operator== ( PndMvaVariable const &  oth) const
private
bool PndMvaVariable::operator> ( PndMvaVariable const &  oth) const
private

Member Data Documentation

float PndMvaVariable::Max

Definition at line 46 of file PndMvaVariable.h.

Referenced by operator=().

float PndMvaVariable::Mean

Definition at line 44 of file PndMvaVariable.h.

Referenced by operator=().

float PndMvaVariable::Min

Definition at line 45 of file PndMvaVariable.h.

Referenced by operator=().

std::string PndMvaVariable::Name

Name of the variable.

Definition at line 38 of file PndMvaVariable.h.

Referenced by operator=().

float PndMvaVariable::NormFactor

Normalization factor of the variable. Sample Variance IQR.

Definition at line 43 of file PndMvaVariable.h.

Referenced by operator=().


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