KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
ErrorAccumulator Struct Reference

Public Member Functions

 ErrorAccumulator (Real norm=1.0)
 Sets an L-p norm.
 
 ErrorAccumulator (const char *type)
 
void Add (Real error)
 
void Add (Real error, Real weight)
 
Real Value () const
 

Public Attributes

Real norm
 
bool mean
 
bool root
 
Real accumulator
 
Real sumWeights
 

Constructor & Destructor Documentation

ErrorAccumulator::ErrorAccumulator ( const char *  type)

Can accept L1, L2, Linf, MAE (mean absolute error) MSE (mean squared error), RMSE (root mean squared error)

References ObjectiveFunctionalBase::IncrementalCost(), and Math::IsInf().


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