BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ObjectiveMetricUtils.h File Reference

Defines ObjectiveMetric utilities and corresponding namespace. More...

Include dependency graph for ObjectiveMetricUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ObjectiveMetricUtils
 Utility functions related to class ObjectiveMetric.
 

Macros

#define BORNAGAIN_CORE_FITTING_OBJECTIVEMETRICUTILS_H
 

Functions

std::string ObjectiveMetricUtils::availableMetricOptions ()
 Prints available metric options. More...
 
std::unique_ptr< ObjectiveMetricObjectiveMetricUtils::createMetric (const std::string &metric)
 Creates the specified metric with the default norm. More...
 
std::unique_ptr< ObjectiveMetricObjectiveMetricUtils::createMetric (std::string metric, std::string norm)
 Creates the metric with the specified norm. More...
 
std::string ObjectiveMetricUtils::defaultMetricName ()
 Returns default metric name. More...
 
std::string ObjectiveMetricUtils::defaultNormName ()
 Returns default norm name. More...
 
const std::function< double(double)> ObjectiveMetricUtils::l1Norm ()
 Returns L1 normalization function. More...
 
const std::function< double(double)> ObjectiveMetricUtils::l2Norm ()
 Returns L2 normalization function. More...
 
std::vector< std::string > ObjectiveMetricUtils::metricNames ()
 Returns the names of the objective metrics used. More...
 
std::vector< std::string > ObjectiveMetricUtils::normNames ()
 Returns the names of the norms used by ObjectiveMetric. More...
 

Detailed Description

Defines ObjectiveMetric utilities and corresponding namespace.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file ObjectiveMetricUtils.h.

Macro Definition Documentation

◆ BORNAGAIN_CORE_FITTING_OBJECTIVEMETRICUTILS_H

#define BORNAGAIN_CORE_FITTING_OBJECTIVEMETRICUTILS_H

Definition at line 21 of file ObjectiveMetricUtils.h.