#include <Combinatorics.h>
|
Int_t | CalculatePermutations () |
|
void | initial_permutation (int size, int *permutation) |
|
void | initial_subset (int k, int *subset) |
|
Bool_t | next_permutation (int size, int *permutation) |
|
Bool_t | next_subset (int n, int k, int *subset) |
|
std::vector< UInt_t > | Rotate (const std::vector< UInt_t > &permutation, UInt_t digits) |
|
void | Skip_2_0 (const std::vector< std::vector< UInt_t > > &permutation1, std::vector< std::vector< UInt_t > > &permutation2) |
|
void | Skip_2_2 (const std::vector< std::vector< UInt_t > > &permutation1, std::vector< std::vector< UInt_t > > &permutation2) |
|
Definition at line 17 of file Combinatorics.h.
Combinatorics::Combinatorics |
( |
Int_t |
Set, |
|
|
Int_t |
Subset |
|
) |
| |
Combinatorics::~Combinatorics |
( |
| ) |
|
|
virtual |
Int_t Combinatorics::CalculatePermutations |
( |
| ) |
|
|
private |
Int_t Combinatorics::EqualPermutation |
( |
const std::vector< UInt_t > & |
permutation1, |
|
|
const std::vector< UInt_t > & |
permutation2 |
|
) |
| |
Int_t Combinatorics::EqualPermutation_2_0 |
( |
const std::vector< UInt_t > & |
permutation1, |
|
|
const std::vector< UInt_t > & |
permutation2 |
|
) |
| |
Int_t Combinatorics::EqualPermutation_2_2 |
( |
const std::vector< UInt_t > & |
permutation1, |
|
|
const std::vector< UInt_t > & |
permutation2 |
|
) |
| |
Int_t Combinatorics::EqualPermutation_N_1 |
( |
const std::vector< UInt_t > & |
permutation1, |
|
|
const std::vector< UInt_t > & |
permutation2 |
|
) |
| |
vector< vector< UInt_t > > Combinatorics::GetCombinations |
( |
| ) |
|
vector< vector< UInt_t > > Combinatorics::GetCombinations_2_0 |
( |
| ) |
|
vector< vector< UInt_t > > Combinatorics::GetCombinations_2_2 |
( |
| ) |
|
vector< vector< UInt_t > > Combinatorics::GetCombinations_N_1 |
( |
| ) |
|
vector< vector< UInt_t > > Combinatorics::GetPermutations |
( |
| ) |
|
void Combinatorics::initial_permutation |
( |
int |
size, |
|
|
int * |
permutation |
|
) |
| |
|
private |
void Combinatorics::initial_subset |
( |
int |
k, |
|
|
int * |
subset |
|
) |
| |
|
private |
Bool_t Combinatorics::next_permutation |
( |
int |
size, |
|
|
int * |
permutation |
|
) |
| |
|
private |
Bool_t Combinatorics::next_subset |
( |
int |
n, |
|
|
int |
k, |
|
|
int * |
subset |
|
) |
| |
|
private |
void Combinatorics::Print |
( |
const std::vector< UInt_t > & |
permutation | ) |
|
void Combinatorics::Print |
( |
const std::vector< std::vector< UInt_t > > & |
permutations | ) |
|
vector< UInt_t > Combinatorics::Rotate |
( |
const std::vector< UInt_t > & |
permutation, |
|
|
UInt_t |
digits |
|
) |
| |
|
private |
void Combinatorics::Skip_2_0 |
( |
const std::vector< std::vector< UInt_t > > & |
permutation1, |
|
|
std::vector< std::vector< UInt_t > > & |
permutation2 |
|
) |
| |
|
private |
void Combinatorics::Skip_2_2 |
( |
const std::vector< std::vector< UInt_t > > & |
permutation1, |
|
|
std::vector< std::vector< UInt_t > > & |
permutation2 |
|
) |
| |
|
private |
std::vector<std::vector <UInt_t> > Combinatorics::m_Combinations |
|
private |
std::vector<std::vector <UInt_t> > Combinatorics::m_Permutations |
|
private |
const Int_t Combinatorics::m_SetQuantity |
|
private |
std::vector<UInt_t> Combinatorics::m_Subset |
|
private |
const Int_t Combinatorics::m_SubsetQuantity |
|
private |