DGtal 1.4.0
|
Aim: defines the concept of special weighted metrics, so called power metrics. More...
#include <DGtal/geometry/volumes/distance/CPowerMetric.h>
Public Types | |
typedef T::Space | Space |
typedef T::Weight | Weight |
typedef T::Value | Value |
typedef T::Point | Point |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((CSpace< Space >)) | |
BOOST_CONCEPT_ASSERT ((CQuantity< Value >)) | |
BOOST_CONCEPT_ASSERT ((CQuantity< Weight >)) | |
BOOST_CONCEPT_USAGE (CPowerMetric) | |
void | checkConstConstraints () const |
Private Attributes | |
T | myX |
Point | myPoint |
Point | myPoint2 |
Point | myPoint3 |
Value | myValue |
Weight | myW1 |
Weight | myW2 |
Weight | myW3 |
DGtal::Closest | aclosest |
Aim: defines the concept of special weighted metrics, so called power metrics.
Description of concept 'CPowerMetric'
boost::CopyConstructible<T>, boost::Assignable<T>
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
---|---|---|---|---|---|---|---|
power distance computation | x.powerDistance(aPoint, anotherPoint, anotherWeight) | aPoint and anotherPoint of type Point, aWeight of type Weight | a value of type Weight | compute the power distance between a point and a weighted point | - | ||
closest point test | closestPower(aOrigin, aP, aWp, aQ, aWq) | aOrigin, aP,aQ of type aPoint, aWp,aWq of type Weight | a value of type Closest | decide between weighted points aP and aQ which one is closer to the origin. This functions returns either DGtal::ClosestFIRST if aP is closer, DGtal::ClosestSECOND if aQ is closer and DGtal::ClosestBOTH if both are equidistant. | - |
ExactPredicateLpPowerSeparableMetric
T | the type that should be a model of CPowerMetric. |
Definition at line 98 of file CPowerMetric.h.
typedef T::Point DGtal::concepts::CPowerMetric< T >::Point |
Definition at line 105 of file CPowerMetric.h.
typedef T::Space DGtal::concepts::CPowerMetric< T >::Space |
Definition at line 102 of file CPowerMetric.h.
typedef T::Value DGtal::concepts::CPowerMetric< T >::Value |
Definition at line 104 of file CPowerMetric.h.
typedef T::Weight DGtal::concepts::CPowerMetric< T >::Weight |
Definition at line 103 of file CPowerMetric.h.
DGtal::concepts::CPowerMetric< T >::BOOST_CONCEPT_ASSERT | ( | (CQuantity< Value >) | ) |
DGtal::concepts::CPowerMetric< T >::BOOST_CONCEPT_ASSERT | ( | (CQuantity< Weight >) | ) |
DGtal::concepts::CPowerMetric< T >::BOOST_CONCEPT_ASSERT | ( | (CSpace< Space >) | ) |
|
inline |
Definition at line 112 of file CPowerMetric.h.
References DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
inline |
Definition at line 117 of file CPowerMetric.h.
References DGtal::concepts::CPowerMetric< T >::aclosest, DGtal::concepts::CPowerMetric< T >::myPoint, DGtal::concepts::CPowerMetric< T >::myPoint2, DGtal::concepts::CPowerMetric< T >::myPoint3, DGtal::concepts::CPowerMetric< T >::myW1, DGtal::concepts::CPowerMetric< T >::myW2, DGtal::concepts::CPowerMetric< T >::myW3, DGtal::concepts::CPowerMetric< T >::myX, and DGtal::concepts::ConceptUtils::sameType().
Referenced by DGtal::concepts::CPowerMetric< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 128 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
private |
Definition at line 125 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
private |
Definition at line 125 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
private |
Definition at line 125 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
private |
Definition at line 126 of file CPowerMetric.h.
|
private |
Definition at line 127 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
private |
Definition at line 127 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
private |
Definition at line 127 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().
|
private |
Definition at line 124 of file CPowerMetric.h.
Referenced by DGtal::concepts::CPowerMetric< T >::checkConstConstraints().