-
Notifications
You must be signed in to change notification settings - Fork 0
/
cluster.h
28 lines (21 loc) · 881 Bytes
/
cluster.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef CLUSTER_H
#define CLUSTER_H
#include <iostream>
#include <vector>
#include <utility>
#include "hash_functions.h"
#include "lsh.h"
#include "cube.h"
#include "vector_ops.h"
#include "hashTable.h"
#include "hypercube.h"
#include "reverse_auxiliary.h"
using namespace std;
void k_means_plus_plus(int k);
void lloyds(int number_of_clusters, fstream& output_file, bool complete_flag);
void reverse_assignment_lloyds(vector<vector<int>>& cluster_table, int number_of_clusters, int num_of_points,
int last_id);
void reverse_assignment_lsh(G_Lsh g, fstream& output_file, int k, bool complete_flag);
void reverse_assignment_cube(G_Hypercube g, fstream& output_file, int k, int probes, bool complete_flag);
void update(vector<vector<int>>& cluster_table, int& last_known_id);
#endif