![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Core/include/Acts/Vertexing/FsmwMode1dFinder.hpp>
Public Member Functions | |
| FsmwMode1dFinder ()=default | |
| Default constructor. | |
| FsmwMode1dFinder (double firstFraction, double fraction) | |
| Result< double > | getMode (std::vector< std::pair< double, double >> inputVector) const |
| Function to calculate mode with FSMW algorithm. | |
Private Attributes | |
| double | m_firstFraction = 0.5 |
| double | m_fraction = 0.5 |
Calculates the mode of a unidimenensional distribution using the Fraction of Sample Mode with Weights algorithm For reference, see: On a Fast, Robust Estimator of the Mode: Comparisons to Other Robust Estimators with Applications, David R. Bickel, Rudolf Fruehwirth, arXiv:math/0505419 It's like an iterative "Half Sample Mode", but the fraction you take at each step can be configured by the user. Configuration possibilities: (1) fraction (default is 50 %) (2) firstFraction (default is 50 %)
Definition at line 34 of file FsmwMode1dFinder.hpp.
View newest version in sPHENIX GitHub at line 34 of file FsmwMode1dFinder.hpp
|
default |
Default constructor.
Overload constructor
| firstFraction | first fraction in FSMW algorithm |
| fraction | all other fractions in FSMW algorithm |
Definition at line 17 of file FsmwMode1dFinder.cpp.
View newest version in sPHENIX GitHub at line 17 of file FsmwMode1dFinder.cpp
| Acts::Result< double > Acts::FsmwMode1dFinder::getMode | ( | std::vector< std::pair< double, double >> | inputVector | ) | const |
Function to calculate mode with FSMW algorithm.
| inputVector | Input collection to calculate mode from |
Definition at line 20 of file FsmwMode1dFinder.cpp.
View newest version in sPHENIX GitHub at line 20 of file FsmwMode1dFinder.cpp
References KFPMath::a, KFPMath::b, parse_cmake_options::begin, end, i, j, Acts::Experimental::detail::BlueprintHelper::sort(), and step.
Here is the call graph for this function:
|
private |
Definition at line 54 of file FsmwMode1dFinder.hpp.
View newest version in sPHENIX GitHub at line 54 of file FsmwMode1dFinder.hpp
|
private |
Definition at line 55 of file FsmwMode1dFinder.hpp.
View newest version in sPHENIX GitHub at line 55 of file FsmwMode1dFinder.hpp