BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ObjectiveMetricUtils.cpp File Reference
Include dependency graph for ObjectiveMetricUtils.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{ObjectiveMetricUtils.cpp}
 

Functions

template<class U >
std::vector< std::string > anonymous_namespace{ObjectiveMetricUtils.cpp}::keys (const std::map< std::string, U > &map)
 

Variables

const std::function< double(double)> anonymous_namespace{ObjectiveMetricUtils.cpp}::l1_norm = [](double term) { return std::abs(term); }
 
const std::function< double(double)> anonymous_namespace{ObjectiveMetricUtils.cpp}::l2_norm = [](double term) { return term * term; }
 
const std::map< std::string, std::function< std::unique_ptr< ObjectiveMetric >)> > anonymous_namespace{ObjectiveMetricUtils.cpp}::metric_factory
 
const std::string anonymous_namespace{ObjectiveMetricUtils.cpp}::default_metric_name = "poisson-like"
 
const std::map< std::string, std::function< double(double)> > anonymous_namespace{ObjectiveMetricUtils.cpp}::norm_factory
 
const std::string anonymous_namespace{ObjectiveMetricUtils.cpp}::default_norm_name = "l2"
 

Detailed Description

Implements ObjectiveMetric utilities.

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.cpp.