4#include "cubeai/base/cubeai_types.h"
14template<
int P,
bool TTakeRoot = true>
50 static real_t evaluate(
const std::vector<real_t>& v1,
const std::vector<real_t>& v2);
64#include "cubeai/maths/lp_metric_impl.h"
The LpMetric class It conforms to the metric policy.
Definition lp_metric.h:16
real_t value_type
Definition lp_metric.h:24
LpMetric()=default
Default constructor. It is required to satisfy the metric policy.
static real_t tolerance_value
Definition lp_metric.h:22
static real_t tolerance()
Tolerance used by the class.
Definition lp_metric.h:29
real_t operator()(const DynVec< real_t > &v1, const DynVec< real_t > &v2) const
Overload operator()
Definition lp_metric_impl.h:86
static const bool TakeRoot
Definition lp_metric.h:21
static real_t evaluate(const DynVec< real_t > &v1, const DynVec< real_t > &v2)
evaluate
Definition lp_metric_impl.h:15
static const int Power
Definition lp_metric.h:20
real_t cost_type
Definition lp_metric.h:23
double real_t
real_t
Definition bitrl_types.h:23
Eigen::RowVectorX< T > DynVec
Dynamically sized row vector.
Definition bitrl_types.h:74
Various utilities used when working with RL problems.
Definition cuberl_types.h:16