#include <SMS.h>
Public Types | |
enum | SMSType { None = 0, Interpolate = 1, Iterate = 2, Weighted = 4 } |
Public Member Functions | |
GlobalPoint | location (const std::vector< GlobalPoint > &) const |
GlobalPoint | location (const std::vector< std::pair< GlobalPoint, float > > &) const |
SMS (SMSType tp=(SMSType)(Interpolate|Iterate|Weighted), float q=0.5) | |
Private Attributes | |
float | theRatio |
SMSType | theType |
Class to compute the SMS location estimator The SMS estimator is the mean value of a set of observations with Small Median of Squared distances.
enum SMS::SMSType |
SMS::SMS | ( | SMSType | tp = (SMSType) (Interpolate | Iterate | Weighted) , |
float | q = 0.5 |
||
) |
GlobalPoint SMS::location | ( | const std::vector< GlobalPoint > & | data | ) | const |
Definition at line 76 of file SMS.cc.
References PDRates::average, gather_cfg::cout, i, Interpolate, Iterate, j, mag2(), theRatio, theType, tmp, and Weighted.
Referenced by SmsModeFinder3d::operator()().
GlobalPoint SMS::location | ( | const std::vector< std::pair< GlobalPoint, float > > & | ) | const |
|
private |
Definition at line 36 of file SMS.h.
Referenced by location().
|
private |
Definition at line 35 of file SMS.h.
Referenced by location().