CommonTools
Statistics
interface
PartitionGenerator.h
Go to the documentation of this file.
1
#ifndef _PartitionGenerator_H_
2
#define _PartitionGenerator_H_
3
4
#include <vector>
5
12
class
PartitionGenerator
{
13
public
:
14
typedef
std::vector<int>
Partition
;
15
18
std::vector<Partition>
partitions
(
int
collectionSize,
int
minCollectionSize = 1)
const
;
19
24
std::vector<std::vector<Partition> >
sortedPartitions
(
int
collectionSize,
int
minCollectionSize = 1)
const
;
25
26
private
:
28
class
LessCollections
{
29
public
:
30
bool
operator()
(
const
Partition
&
a
,
const
Partition
&
b
) {
return
a
.size() <
b
.size(); }
31
};
32
};
33
34
#endif
PartitionGenerator::sortedPartitions
std::vector< std::vector< Partition > > sortedPartitions(int collectionSize, int minCollectionSize=1) const
Definition:
PartitionGenerator.cc:34
PartitionGenerator::LessCollections::operator()
bool operator()(const Partition &a, const Partition &b)
Definition:
PartitionGenerator.h:30
PartitionGenerator
Definition:
PartitionGenerator.h:12
b
double b
Definition:
hdecay.h:118
PartitionGenerator::partitions
std::vector< Partition > partitions(int collectionSize, int minCollectionSize=1) const
Definition:
PartitionGenerator.cc:6
a
double a
Definition:
hdecay.h:119
PartitionGenerator::Partition
std::vector< int > Partition
Definition:
PartitionGenerator.h:14
PartitionGenerator::LessCollections
Definition:
PartitionGenerator.h:28
Generated for CMSSW Reference Manual by
1.8.16