noparama  v0.0.1
Nonparametric Bayesian models
clustering_performance.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common.h>
4 
6  public:
8 
10 
11  void calculateSimilarity(matrix_t & frequencies);
12 
13  void write(std::string fname);
14 
15  private:
16  double _rand_index;
17 
18  double _adjusted_rand_index;
19 
20  double _purity;
21 };
Eigen::Matrix< int, Eigen::Dynamic, Eigen::Dynamic > matrix_t
Definition: common.h:3
void calculateSimilarity(matrix_t &frequencies)
Definition: clustering_performance.cpp:38
Definition: pretty_print.hpp:112
Definition: clustering_performance.h:5
clustering_performance()
Definition: clustering_performance.cpp:11
matrix_t & calculateContingencyMatrix(std::vector< int > &A, std::vector< int > &B)
Definition: clustering_performance.cpp:14
void write(std::string fname)
Definition: clustering_performance.cpp:84