PandaRoot
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
 

Detailed Description

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

Definition at line 29 of file PndMvaVariable.h.

Constructor & Destructor Documentation

◆ PndMvaVariable() [1/2]

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 65 of file PndMvaVariable.h.

66  : Name(name), NormFactor(normFactor), Mean(mean), Min(min), Max(max){};
std::string Name
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:37
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:36

◆ ~PndMvaVariable()

PndMvaVariable::~PndMvaVariable ( )
inlinevirtual

Destructor.

Definition at line 69 of file PndMvaVariable.h.

69 {};

◆ PndMvaVariable() [2/2]

PndMvaVariable::PndMvaVariable ( PndMvaVariable const &  oth)
inline

Copy constructor.

Definition at line 72 of file PndMvaVariable.h.

72 : Name(oth.Name), NormFactor(oth.NormFactor), Mean(oth.Mean), Min(oth.Min), Max(oth.Max){};
std::string Name

Member Function Documentation

◆ operator=()

PndMvaVariable & PndMvaVariable::operator= ( PndMvaVariable const &  oth)
inline

Assignment operator.

Definition at line 75 of file PndMvaVariable.h.

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

76 {
77  // check for self-assignment
78  if (this != &oth) { // Not equal, thus deep copy
79  this->Name = oth.Name;
80  this->NormFactor = oth.NormFactor;
81  this->Mean = oth.Mean;
82  this->Min = oth.Min;
83  this->Max = oth.Max;
84  }
85  return (*this);
86 } // End of interface definition.
std::string Name

Member Data Documentation

◆ Max

float PndMvaVariable::Max

Definition at line 55 of file PndMvaVariable.h.

Referenced by operator=().

◆ Mean

float PndMvaVariable::Mean

Definition at line 53 of file PndMvaVariable.h.

Referenced by operator=().

◆ Min

float PndMvaVariable::Min

Definition at line 54 of file PndMvaVariable.h.

Referenced by operator=().

◆ Name

std::string PndMvaVariable::Name

Name of the variable.

Definition at line 47 of file PndMvaVariable.h.

Referenced by operator=().

◆ NormFactor

float PndMvaVariable::NormFactor

Normalization factor of the variable. Sample Variance IQR.

Definition at line 52 of file PndMvaVariable.h.

Referenced by operator=().


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