CMS 3D CMS Logo

Public Member Functions

LmsModeFinder3d Class Reference

#include <LmsModeFinder3d.h>

Inheritance diagram for LmsModeFinder3d:
ModeFinder3d unary_function

List of all members.

Public Member Functions

virtual LmsModeFinder3dclone () const
virtual GlobalPoint operator() (const std::vector< PointAndDistance > &values) const

Detailed Description

Least Median sum of squares mode finder. Works coordinate wise.

Definition at line 8 of file LmsModeFinder3d.h.


Member Function Documentation

LmsModeFinder3d * LmsModeFinder3d::clone ( void  ) const [virtual]

Implements ModeFinder3d.

Definition at line 14 of file LmsModeFinder3d.cc.

{
  return new LmsModeFinder3d ( * this );
}
GlobalPoint LmsModeFinder3d::operator() ( const std::vector< PointAndDistance > &  values) const [virtual]

Implements ModeFinder3d.

Definition at line 4 of file LmsModeFinder3d.cc.

References i, lms_3d(), and v.

                                                                                           {
  std::vector < GlobalPoint > v;
  for ( std::vector< PointAndDistance >::const_iterator i=values.begin(); 
      i!=values.end() ; ++i ) 
  {
    v.push_back ( i->first );
  };
  return lms_3d ( v );
}