noparama
v0.0.1
Nonparametric Bayesian models
include
clustering_performance.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
common.h
>
4
5
class
clustering_performance
{
6
public
:
7
clustering_performance
();
8
9
matrix_t
&
calculateContingencyMatrix
(
std::vector<int>
& A,
std::vector<int>
& B);
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
};
matrix_t
Eigen::Matrix< int, Eigen::Dynamic, Eigen::Dynamic > matrix_t
Definition:
common.h:3
clustering_performance::calculateSimilarity
void calculateSimilarity(matrix_t &frequencies)
Definition:
clustering_performance.cpp:38
std::vector
Definition:
pretty_print.hpp:112
clustering_performance
Definition:
clustering_performance.h:5
common.h
clustering_performance::clustering_performance
clustering_performance()
Definition:
clustering_performance.cpp:11
clustering_performance::calculateContingencyMatrix
matrix_t & calculateContingencyMatrix(std::vector< int > &A, std::vector< int > &B)
Definition:
clustering_performance.cpp:14
clustering_performance::write
void write(std::string fname)
Definition:
clustering_performance.cpp:84
Generated by
1.8.13