CMS 3D CMS Logo

PartitionGenerator.h
Go to the documentation of this file.
1 #ifndef _PartitionGenerator_H_
2 #define _PartitionGenerator_H_
3 
4 #include <vector>
5 
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:
29  public:
30  bool operator()(const Partition& a, const Partition& b) { return a.size() < b.size(); }
31  };
32 };
33 
34 #endif
std::vector< std::vector< Partition > > sortedPartitions(int collectionSize, int minCollectionSize=1) const
bool operator()(const Partition &a, const Partition &b)
double b
Definition: hdecay.h:120
std::vector< int > Partition
double a
Definition: hdecay.h:121
std::vector< Partition > partitions(int collectionSize, int minCollectionSize=1) const