bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl::maths::LpMetric< P, TTakeRoot > Class Template Reference

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().

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

Detailed Description

template<int P, bool TTakeRoot = true>
class bitrl::maths::LpMetric< P, TTakeRoot >

The LpMetric class It conforms to the metric policy.

Member Typedef Documentation

◆ cost_type

template<int P, bool TTakeRoot = true>
typedef real_t bitrl::maths::LpMetric< P, TTakeRoot >::cost_type

◆ value_type

template<int P, bool TTakeRoot = true>
typedef real_t bitrl::maths::LpMetric< P, TTakeRoot >::value_type

Constructor & Destructor Documentation

◆ LpMetric()

template<int P, bool TTakeRoot = true>
bitrl::maths::LpMetric< P, TTakeRoot >::LpMetric ( )
default

Default constructor. It is required to satisfy the metric policy.

Member Function Documentation

◆ evaluate() [1/2]

template<int P, bool TTakeRoot>
real_t bitrl::maths::LpMetric< P, TTakeRoot >::evaluate ( const DynVec< real_t > & v1,
const DynVec< real_t > & v2 )
static

evaluate

◆ evaluate() [2/2]

template<int P, bool TTakeRoot>
real_t bitrl::maths::LpMetric< P, TTakeRoot >::evaluate ( const std::vector< real_t > & v1,
const std::vector< real_t > & v2 )
static

evaluate

◆ operator()()

template<int P, bool TTakeRoot>
real_t bitrl::maths::LpMetric< P, TTakeRoot >::operator() ( const DynVec< real_t > & v1,
const DynVec< real_t > & v2 ) const

Overload operator().

◆ tolerance()

template<int P, bool TTakeRoot = true>
real_t bitrl::maths::LpMetric< P, TTakeRoot >::tolerance ( )
inlinestatic

Tolerance used by the class.

Member Data Documentation

◆ Power

template<int P, bool TTakeRoot = true>
const int bitrl::maths::LpMetric< P, TTakeRoot >::Power = P
static

◆ TakeRoot

template<int P, bool TTakeRoot = true>
const bool bitrl::maths::LpMetric< P, TTakeRoot >::TakeRoot = TTakeRoot
static

◆ tolerance_value

template<int P, bool TTakeRoot = true>
real_t bitrl::maths::LpMetric< P, TTakeRoot >::tolerance_value
static

The documentation for this class was generated from the following files: