#include <FsmwModeFinder3d.h>
Public Member Functions | |
virtual FsmwModeFinder3d * | clone () const |
FsmwModeFinder3d (float fraction=.5, float weightExponent=-2., float cutoff=10, int no_weights_above=10) | |
virtual GlobalPoint | operator() (const std::vector< PointAndDistance > &) const |
Public Member Functions inherited from ModeFinder3d | |
virtual | ~ModeFinder3d () |
Private Attributes | |
float | theCutoff |
float | theFraction |
int | theNoWeightsAbove |
float | theWeightExponent |
Additional Inherited Members | |
Public Types inherited from ModeFinder3d | |
typedef std::pair< GlobalPoint, float > | PointAndDistance |
this is a half sample mode finder that works coordinate wise, in 3d.
Definition at line 12 of file FsmwModeFinder3d.h.
FsmwModeFinder3d::FsmwModeFinder3d | ( | float | fraction = .5 , |
float | weightExp = -2. , |
||
float | cutoff = 10 , |
||
int | no_w_a = 10 |
||
) |
Constructor
fraction | the fraction of data points that have to be within the interval. |
weightExponent | The exponent by which the weights are taken into account. Default is "w^-1", w being the track distance + cutoff (see below). |
cutoff | weight = ( cutoff + 10000 * distance ) * weightExponent |
no_weights_above | ignore weights as long as the number of data points is > x |
Half sample mode in 3d, as a functional class.
Definition at line 10 of file FsmwModeFinder3d.cc.
References assert(), and theFraction.
Referenced by clone().
|
virtual |
Implements ModeFinder3d.
Definition at line 62 of file FsmwModeFinder3d.cc.
References FsmwModeFinder3d().
|
virtual |
Implements ModeFinder3d.
Definition at line 18 of file FsmwModeFinder3d.cc.
References ecalcalib_dqm_sourceclient-live_cfg::algo, assert(), i, funct::pow(), run_regression::ret, theCutoff, theFraction, theNoWeightsAbove, theWeightExponent, create_public_lumi_plots::tmp_x, create_public_lumi_plots::tmp_y, and histoStyle::weight.
|
private |
Definition at line 34 of file FsmwModeFinder3d.h.
Referenced by operator()().
|
private |
Definition at line 32 of file FsmwModeFinder3d.h.
Referenced by FsmwModeFinder3d(), and operator()().
|
private |
Definition at line 35 of file FsmwModeFinder3d.h.
Referenced by operator()().
|
private |
Definition at line 33 of file FsmwModeFinder3d.h.
Referenced by operator()().