|
bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
|
The LpMetric class It conforms to the metric policy. More...
#include <lp_metric.h>
Public Types | |
| typedef real_t | cost_type |
| typedef real_t | value_type |
Public Member Functions | |
| LpMetric ()=default | |
| Default constructor. It is required to satisfy the metric policy. | |
| real_t | operator() (const DynVec< real_t > &v1, const DynVec< real_t > &v2) const |
| Overload operator() | |
| real_t | evaluate (const DynVec< real_t > &v1, const DynVec< real_t > &v2) |
| real_t | evaluate (const DynVec< real_t > &v1, const DynVec< real_t > &v2) |
| real_t | evaluate (const DynVec< real_t > &v1, const DynVec< real_t > &v2) |
| real_t | evaluate (const DynVec< real_t > &v1, const DynVec< real_t > &v2) |
| real_t | evaluate (const DynVec< real_t > &v1, const DynVec< real_t > &v2) |
| real_t | evaluate (const DynVec< real_t > &v1, const DynVec< real_t > &v2) |
| real_t | evaluate (const std::vector< real_t > &v1, const std::vector< real_t > &v2) |
| real_t | evaluate (const std::vector< real_t > &v1, const std::vector< real_t > &v2) |
| real_t | evaluate (const std::vector< real_t > &v1, const std::vector< real_t > &v2) |
| real_t | evaluate (const std::vector< real_t > &v1, const std::vector< real_t > &v2) |
Static Public Member Functions | |
| static real_t | tolerance () |
| Tolerance used by the class. | |
| static real_t | evaluate (const DynVec< real_t > &v1, const DynVec< real_t > &v2) |
| evaluate | |
| static real_t | evaluate (const std::vector< real_t > &v1, const std::vector< real_t > &v2) |
| evaluate | |
Static Public Attributes | |
| static const int | Power = P |
| static const bool | TakeRoot = TTakeRoot |
| static real_t | tolerance_value = 1.0e-8 |
The LpMetric class It conforms to the metric policy.
| typedef real_t cuberl::maths::LpMetric< P, TTakeRoot >::cost_type |
| typedef real_t cuberl::maths::LpMetric< P, TTakeRoot >::value_type |
|
default |
Default constructor. It is required to satisfy the metric policy.
|
static |
evaluate
| real_t cuberl::maths::LpMetric< 1, true >::evaluate | ( | const DynVec< real_t > & | v1, |
| const DynVec< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 1, false >::evaluate | ( | const DynVec< real_t > & | v1, |
| const DynVec< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 2, true >::evaluate | ( | const DynVec< real_t > & | v1, |
| const DynVec< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 2, false >::evaluate | ( | const DynVec< real_t > & | v1, |
| const DynVec< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 3, true >::evaluate | ( | const DynVec< real_t > & | v1, |
| const DynVec< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 3, false >::evaluate | ( | const DynVec< real_t > & | v1, |
| const DynVec< real_t > & | v2 | ||
| ) |
|
static |
evaluate
| real_t cuberl::maths::LpMetric< 1, true >::evaluate | ( | const std::vector< real_t > & | v1, |
| const std::vector< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 1, false >::evaluate | ( | const std::vector< real_t > & | v1, |
| const std::vector< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 2, true >::evaluate | ( | const std::vector< real_t > & | v1, |
| const std::vector< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< 2, false >::evaluate | ( | const std::vector< real_t > & | v1, |
| const std::vector< real_t > & | v2 | ||
| ) |
| real_t cuberl::maths::LpMetric< P, TTakeRoot >::operator() | ( | const DynVec< real_t > & | v1, |
| const DynVec< real_t > & | v2 | ||
| ) | const |
Overload operator()
|
inlinestatic |
Tolerance used by the class.
|
static |
|
static |
|
static |