Alexandria 2.31.2
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Euclid::SOM::UMatrix_impl Namespace Reference

Variables

std::map< UMatrixType, std::function< double(const std::vector< double > &)> > type_func_map
 

Variable Documentation

◆ type_func_map

std::map<UMatrixType, std::function<double(const std::vector<double>&)> > Euclid::SOM::UMatrix_impl::type_func_map
Initial value:
{
{UMatrixType::MIN,
[](const std::vector<double>& dist_list) { return *std::min_element(dist_list.begin(), dist_list.end()); }},
{UMatrixType::MAX,
[](const std::vector<double>& dist_list) { return *std::max_element(dist_list.begin(), dist_list.end()); }},
{UMatrixType::MEAN, [](const std::vector<double>& dist_list) {
return std::accumulate(dist_list.begin(), dist_list.end(), 0.) / dist_list.size();
}}}
T accumulate(T... args)
T max_element(T... args)
T min_element(T... args)

Definition at line 34 of file UMatrix.icpp.

Referenced by Euclid::SOM::computeUMatrix().