BICO 1.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Pages
partitionevaluation.h
Go to the documentation of this file.
1 #ifndef PARTITIONEVALUATION_H
2 #define PARTITIONEVALUATION_H
3
4 #include "../base/evaluation.h"
5 #include "../base/partitionprovider.h"
6
7 #include <vector>
8
9 namespace CluE
10 {
11
19 template<typename T> class PartitionEvaluation : virtual public Evaluation
20 {
21 public:
22 virtual ~PartitionEvaluation()
23 {
24 }
25
29 virtual double partitioncost(std::vector<std::vector<T*> > const &partitioning) const = 0;
33 virtual double partitioncost(PartitionProvider<T> const &partitioning, unsigned int solutionIndex) const = 0;
34
38 virtual double partitioncost(std::vector<T*> const &partition) const = 0;
42 virtual double partitioncost(PartitionProvider<T> const &partitioning, unsigned int solutionIndex, unsigned int partitionIndex) const = 0;
43 };
44
45 }
46
47 #endif
CluE::PartitionEvaluation::partitioncost
virtual double partitioncost(std::vector< std::vector< T * > > const &partitioning) const =0
Calculates the cost of a given partitioning.
CluE::Evaluation
Abstract base class for clustering evaluations.
Definition: evaluation.h:14
CluE::PartitionEvaluation::~PartitionEvaluation
virtual ~PartitionEvaluation()
Definition: partitionevaluation.h:22
CluE::PartitionEvaluation
Abstract class for partition-based evaluation algorithms.
Definition: partitionevaluation.h:19
CluE::PartitionProvider
Abstract base class to access results of partition based clustering algorithms.
Definition: partitionprovider.h:16