1 #ifndef _Clusterizer1DCommons_H_
2 #define _Clusterizer1DCommons_H_
6 namespace Clusterizer1DCommons {
8 inline double square(
const double a) {
return a *
a; }
18 void add(
const std::vector<const T*>&
source, std::vector<const T*>&
dest) {
19 for (
typename std::vector<const T*>::const_iterator
i = source.begin();
i != source.end(); ++
i) {
void add(const std::vector< const T * > &source, std::vector< const T * > &dest)
bool operator()(const Cluster1D< T > &c1, const Cluster1D< T > &c2)
Measurement1D position() const
double square(const double a)
static std::string const source