All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
lar_content::SupportVectorMachine::FeatureInfo Class Reference

FeatureInfo class. More...

Public Member Functions

 FeatureInfo (const double muValue, const double sigmaValue)
 FeatureInfo class. More...
 
 FeatureInfo ()
 Default constructor to allow default-construction of (uninitialized) svms. More...
 
double StandardizeParameter (const double parameter) const
 Standardize a parameter corresponding to this feature. More...
 

Public Attributes

double m_muValue
 The average value of this feature. More...
 
double m_sigmaValue
 The stddev of this feature. More...
 

Detailed Description

FeatureInfo class.

Definition at line 132 of file LArSupportVectorMachine.h.

Constructor & Destructor Documentation

lar_content::SupportVectorMachine::FeatureInfo::FeatureInfo ( const double  muValue,
const double  sigmaValue 
)
inline

FeatureInfo class.

Parameters
muValuethe average value of this feature
sigmaValuethe stddev of this feature

Definition at line 410 of file LArSupportVectorMachine.h.

410  :
411  m_muValue(muValue),
412  m_sigmaValue(sigmaValue)
413 {
414 }
double m_muValue
The average value of this feature.
lar_content::SupportVectorMachine::FeatureInfo::FeatureInfo ( )
inline

Default constructor to allow default-construction of (uninitialized) svms.

Definition at line 418 of file LArSupportVectorMachine.h.

418  : m_muValue(0.), m_sigmaValue(0.)
419 {
420 }
double m_muValue
The average value of this feature.

Member Function Documentation

double lar_content::SupportVectorMachine::FeatureInfo::StandardizeParameter ( const double  parameter) const
inline

Standardize a parameter corresponding to this feature.

Parameters
parameterthe parameter
Returns
the standardized parameter

Definition at line 424 of file LArSupportVectorMachine.h.

425 {
426  if (m_sigmaValue < std::numeric_limits<double>::epsilon())
427  throw pandora::StatusCodeException(pandora::STATUS_CODE_INVALID_PARAMETER);
428 
429  return (parameter - m_muValue) / m_sigmaValue;
430 }
double m_muValue
The average value of this feature.

Member Data Documentation

double lar_content::SupportVectorMachine::FeatureInfo::m_muValue

The average value of this feature.

Definition at line 157 of file LArSupportVectorMachine.h.

double lar_content::SupportVectorMachine::FeatureInfo::m_sigmaValue

The stddev of this feature.

Definition at line 158 of file LArSupportVectorMachine.h.


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