9 std::vector < std::pair < GlobalPoint, float > >
weighted;
10 for ( std::vector< PointAndDistance >::const_iterator
i=values.begin();
11 i!=values.end() ; ++
i )
13 float weight =
pow ( 10 + 10000 *
i->second, -2 );
14 weighted.push_back ( std::pair < GlobalPoint, float > (
i->first, weight ) );
virtual GlobalPoint operator()(const std::vector< PointAndDistance > &values) const
virtual SmsModeFinder3d * clone() const
SmsModeFinder3d(const SMS &algo=SMS())
Power< A, B >::type pow(const A &a, const B &b)
GlobalPoint location(const std::vector< GlobalPoint > &) const