ATLAS Offline Software
|
#include <Combination.h>
Public Member Functions | |
Combination () | |
Default construcor. A combination of 1 out of 1 is created. More... | |
Combination (const unsigned int &n, const unsigned int &k) | |
Constructor. More... | |
unsigned int | numberOfElements () const |
get the number of elements More... | |
unsigned int | whichClass () const |
get the class of which the combination is More... | |
unsigned int | numberOfCombinations () const |
get the number of combinations More... | |
void | currentCombination (std::vector< unsigned int > &index_array) const |
get the current combination; the result is stored in the vector index_array More... | |
void | nextCombination (std::vector< unsigned int > &index_array) |
get the next combination; the results is stored in the array index_array More... | |
void | reset () |
go back to the first combination More... | |
void | setNewParameters (const unsigned int &nb_elements, const unsigned int &wh_class) |
set the number of elements = nb_elements; set the class of which the combination is = wh_class More... | |
Private Member Functions | |
void | init (const unsigned int &n, const unsigned int &k) |
Private Attributes | |
unsigned int | m_n = 0U |
unsigned int | m_k = 0U |
std::vector< unsigned int > | m_index |
std::vector< unsigned int > | m_flag |
Definition at line 33 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/MuonCalibMath/Combination.h.
Combination::Combination | ( | ) |
Default construcor. A combination of 1 out of 1 is created.
Definition at line 20 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
Constructor.
n | Number of elements. |
k | Class of the combination. |
Definition at line 32 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
void Combination::currentCombination | ( | std::vector< unsigned int > & | index_array | ) | const |
get the current combination; the result is stored in the vector index_array
Definition at line 125 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
Definition at line 44 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
void Combination::nextCombination | ( | std::vector< unsigned int > & | index_array | ) |
get the next combination; the results is stored in the array index_array
Definition at line 145 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
unsigned int Combination::numberOfCombinations | ( | ) | const |
get the number of combinations
Definition at line 103 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
unsigned int Combination::numberOfElements | ( | ) | const |
get the number of elements
Definition at line 79 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
void Combination::reset | ( | ) |
go back to the first combination
Definition at line 213 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
void Combination::setNewParameters | ( | const unsigned int & | nb_elements, |
const unsigned int & | wh_class | ||
) |
set the number of elements = nb_elements; set the class of which the combination is = wh_class
Definition at line 230 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
unsigned int Combination::whichClass | ( | ) | const |
get the class of which the combination is
Definition at line 91 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/src/Combination.cxx.
|
private |
Definition at line 74 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/MuonCalibMath/Combination.h.
|
private |
Definition at line 72 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/MuonCalibMath/Combination.h.
|
private |
Definition at line 71 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/MuonCalibMath/Combination.h.
|
private |
Definition at line 70 of file MuonSpectrometer/MuonCalib/MuonCalibUtils/MuonCalibMath/MuonCalibMath/Combination.h.