-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdecompose.h
More file actions
31 lines (21 loc) · 823 Bytes
/
decompose.h
File metadata and controls
31 lines (21 loc) · 823 Bytes
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
29
30
31
/* decompose.h
Jeremy Barnes, 16 August 2009
Copyright (c) 2009 Jeremy Barnes. All rights reserved.
Decomposition of matrix.
*/
#ifndef __github__decompose_h__
#define __github__decompose_h__
#include "data.h"
struct Decomposition {
// Perform a SVD on the adjacency matrix
void decompose(Data & data);
// Perform a k-means clustering based upon embedded representation
void kmeans_repos(Data & data);
// Ditto for the users
void kmeans_users(Data & data);
void save_kmeans_users(std::ostream & stream, const Data & data);
void save_kmeans_repos(std::ostream & stream, const Data & data);
void load_kmeans_users(const std::string & filename, Data & data);
void load_kmeans_repos(const std::string & filename, Data & data);
};
#endif /* __github__decompose_h__ */