cpp-toolbox  0.0.1
A toolbox library for C++
Loading...
Searching...
No Matches
toolbox::metrics::metric_traits< Metric > Struct Template Reference

#include <metric_traits.hpp>

Public Types

using metric_type = Metric
 
using element_type = typename Metric::element_type
 
using result_type = typename Metric::result_type
 

Static Public Attributes

static constexpr bool is_symmetric = true
 
static constexpr bool is_squared = false
 
static constexpr bool has_squared_form = false
 
static constexpr bool is_normalized = false
 
static constexpr bool requires_positive_values = false
 
static constexpr result_type min_distance = 0
 
static constexpr result_type max_distance = std::numeric_limits<result_type>::max()
 

Member Typedef Documentation

◆ element_type

template<typename Metric >
using toolbox::metrics::metric_traits< Metric >::element_type = typename Metric::element_type

◆ metric_type

template<typename Metric >
using toolbox::metrics::metric_traits< Metric >::metric_type = Metric

◆ result_type

template<typename Metric >
using toolbox::metrics::metric_traits< Metric >::result_type = typename Metric::result_type

Member Data Documentation

◆ has_squared_form

template<typename Metric >
constexpr bool toolbox::metrics::metric_traits< Metric >::has_squared_form = false
staticconstexpr

◆ is_normalized

template<typename Metric >
constexpr bool toolbox::metrics::metric_traits< Metric >::is_normalized = false
staticconstexpr

◆ is_squared

template<typename Metric >
constexpr bool toolbox::metrics::metric_traits< Metric >::is_squared = false
staticconstexpr

◆ is_symmetric

template<typename Metric >
constexpr bool toolbox::metrics::metric_traits< Metric >::is_symmetric = true
staticconstexpr

◆ max_distance

template<typename Metric >
constexpr result_type toolbox::metrics::metric_traits< Metric >::max_distance = std::numeric_limits<result_type>::max()
staticconstexpr

◆ min_distance

template<typename Metric >
constexpr result_type toolbox::metrics::metric_traits< Metric >::min_distance = 0
staticconstexpr

◆ requires_positive_values

template<typename Metric >
constexpr bool toolbox::metrics::metric_traits< Metric >::requires_positive_values = false
staticconstexpr

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