16 #error no need to expose this header to Swig 
   20 #ifndef BORNAGAIN_CORE_FITTING_OBJECTIVEMETRICUTILS_H 
   21 #define BORNAGAIN_CORE_FITTING_OBJECTIVEMETRICUTILS_H 
   35 const std::function<double(
double)> 
l1Norm();
 
   37 const std::function<double(
double)> 
l2Norm();
 
   40 std::unique_ptr<ObjectiveMetric> 
createMetric(
const std::string& metric);
 
   43 std::unique_ptr<ObjectiveMetric> 
createMetric(std::string metric, std::string norm);
 
Base class for metric implementations.
 
Utility functions related to class ObjectiveMetric.
 
const std::function< double(double)> l2Norm()
Returns L2 normalization function.
 
std::string defaultMetricName()
Returns default metric name.
 
std::string defaultNormName()
Returns default norm name.
 
std::string availableMetricOptions()
Prints available metric options.
 
std::unique_ptr< ObjectiveMetric > createMetric(const std::string &metric)
Creates the specified metric with the default norm.
 
std::vector< std::string > metricNames()
Returns the names of the objective metrics used.
 
const std::function< double(double)> l1Norm()
Returns L1 normalization function.
 
std::vector< std::string > normNames()
Returns the names of the norms used by ObjectiveMetric.