All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeometricMeanScore.h
Go to the documentation of this file.
1 /*
2  * GeometricMeanScore.h
3  *
4  * Created on: 18.11.2014
5  * Author: Michael Hamann
6  */
7 
8 #ifndef GEOMETRICMEANSCORE_H
9 #define GEOMETRICMEANSCORE_H
10 
11 #include "EdgeScore.h"
12 
13 namespace NetworKit {
14 
15 class GeometricMeanScore : public EdgeScore<double> {
16 
17 private:
18  const std::vector<double>& attribute;
19 
20 public:
21  GeometricMeanScore(const Graph& G, const std::vector<double>& attribute);
22  virtual double score(edgeid eid) override;
23  virtual double score(node u, node v) override;
24  virtual void run() override;
25 };
26 
27 } // namespace NetworKit
28 
29 #endif // GEOMETRICMEANSCORE_H
index edgeid
Definition: Globals.h:25
virtual void run() override
Compute the edge score.
Definition: GeometricMeanScore.cpp:17
const Graph & G
Definition: EdgeScore.h:43
Definition: GeometricMeanScore.h:15
index node
Definition: Globals.h:23
A graph (with optional weights) and parallel iterator methods.
Definition: Graph.h:79
virtual double score(edgeid eid) override
Get the edge score of the edge with the given edge id.
Definition: GeometricMeanScore.cpp:48
GeometricMeanScore(const Graph &G, const std::vector< double > &attribute)
Definition: GeometricMeanScore.cpp:14
Abstract base class for an edge score.
Definition: EdgeScore.h:20