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

54  : 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:25
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:24

◆ ~PndMvaVariable()

PndMvaVariable::~PndMvaVariable ( )
inlinevirtual

Destructor.

Definition at line 57 of file PndMvaVariable.h.

57 {};

◆ PndMvaVariable() [2/2]

PndMvaVariable::PndMvaVariable ( PndMvaVariable const &  oth)
inline

Copy constructor.

Definition at line 60 of file PndMvaVariable.h.

60 : 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 63 of file PndMvaVariable.h.

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

64 {
65  // check for self-assignment
66  if (this != &oth) { // Not equal, thus deep copy
67  this->Name = oth.Name;
68  this->NormFactor = oth.NormFactor;
69  this->Mean = oth.Mean;
70  this->Min = oth.Min;
71  this->Max = oth.Max;
72  }
73  return (*this);
74 } // End of interface definition.
std::string Name

Member Data Documentation

◆ Max

float PndMvaVariable::Max

Definition at line 43 of file PndMvaVariable.h.

Referenced by operator=().

◆ Mean

float PndMvaVariable::Mean

Definition at line 41 of file PndMvaVariable.h.

Referenced by operator=().

◆ Min

float PndMvaVariable::Min

Definition at line 42 of file PndMvaVariable.h.

Referenced by operator=().

◆ Name

std::string PndMvaVariable::Name

Name of the variable.

Definition at line 35 of file PndMvaVariable.h.

Referenced by operator=().

◆ NormFactor

float PndMvaVariable::NormFactor

Normalization factor of the variable. Sample Variance IQR.

Definition at line 40 of file PndMvaVariable.h.

Referenced by operator=().


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