LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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 131 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 401 of file LArSupportVectorMachine.h.

401  :
402  m_muValue(muValue),
403  m_sigmaValue(sigmaValue)
404 {
405 }
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 409 of file LArSupportVectorMachine.h.

409  :
410  m_muValue(0.),
411  m_sigmaValue(0.)
412 {
413 }
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 417 of file LArSupportVectorMachine.h.

References m_muValue, and m_sigmaValue.

418 {
419  if (m_sigmaValue < std::numeric_limits<double>::epsilon())
420  throw pandora::StatusCodeException(pandora::STATUS_CODE_INVALID_PARAMETER);
421 
422  return (parameter - m_muValue) / m_sigmaValue;
423 }
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 156 of file LArSupportVectorMachine.h.

Referenced by StandardizeParameter().

double lar_content::SupportVectorMachine::FeatureInfo::m_sigmaValue

The stddev of this feature.

Definition at line 157 of file LArSupportVectorMachine.h.

Referenced by StandardizeParameter().


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