Sprungmarken

Servicenavigation

       

Hauptnavigation

Bereichsnavigation

PROBI: CenterOfGravity Class Reference
PROBI  1.0
CenterOfGravity Class Reference

Computes the center of gravity / centroid / 1-means. More...

#include <CenterOfGravity.hpp>

Public Member Functions

 CenterOfGravity (std::function< Metric< Point > *() > createMetric)
 
template<typename ForwardIterator >
Point cog (ForwardIterator begin, ForwardIterator end)
 Computes the center of gravity / centroid / 1-means. More...
 

Detailed Description

Computes the center of gravity / centroid / 1-means.

Member Function Documentation

template<typename ForwardIterator >
Point CenterOfGravity::cog ( ForwardIterator  begin,
ForwardIterator  end 
)

Computes the center of gravity / centroid / 1-means.

Parameters
beginInput point set iterator: begin
endInput point set iterator: end
Returns
Center of gravity

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