stablejet is hosted by Hepforge, IPPP Durham
StableJet
ClusteringComparisonCP.h
1 #ifndef ClusteringComparisonCP_h
2 #define ClusteringComparisonCP_h
3 
4 #include "ClusteringComparisonIndexCP.h"
5 
6 namespace stab {
7 
9 
10 public:
11  inline virtual ~TransversePairwiseIndexCP() { }
12 
16  double index( const PseudoJet * inputParticles,
17  const unsigned * clustering1,
18  const unsigned * clustering2,
19  unsigned size,
20  double * constitStab ) const;
21 
22 private:
34  virtual double combineCounts(double c1, double c2,
35  double c3, double c4) const = 0;
36 
37 }; // end TransversepairwiseIndexCP class
38 
39 
40 
45 
46  inline double combineCounts(const double c1, const double c2,
47  const double c3, const double c4) const
48  {
49  return (c1 + c2)/(c1 + c2 + c3 + c4);
50  }
51 
52 }; // end TransRandIndexCP class
53 
54 
59 
60  inline double combineCounts(const double c1, const double c2,
61  const double c3, const double c4) const
62  {
63  return c1/(c1 + c3 + c4);
64  }
65 
66 }; // end TransJaccardIndexCP class
67 
68 } // end stab namespace
69 
70 #endif
double index(const PseudoJet *inputParticles, const unsigned *clustering1, const unsigned *clustering2, unsigned size, double *constitStab) const