-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecom_steps.h
30 lines (18 loc) · 1.02 KB
/
recom_steps.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
29
30
//
// recom_steps.h
//
// Christina-Theano Kylafi
// AM: 1115201200077
#ifndef recom_steps_h
#define recom_steps_h
#include "recom.h"
//main
int recom_steps(struct tweets* tweets[], long long tweets_size, struct sentim_score_map* sentim_map[], long long sentim_map_size, struct crypto_coins* coins[], long long coins_size, struct users* users[], long long users_num, char* outputfile, int p_nearest);
//subfunctions
//steps
double calculate_sentim_score(struct tweets* tweets[], long long tweets_size, struct sentim_score_map* sentim_map[], long long sentim_map_size);
void normalise_vector_user_crypto(struct users* users[], long long users_num, int coins_num);
void calculate_average_rating(struct users* users[], long long users_num, int coins_num);
long long count_users_with_coins(struct users* users[], long long users_num, int coins_size);
void clear_users_with_no_coins(struct users* users[], long long users_num, struct users* users_with_coins[], long long users_with_coins_num, int coins_size);
#endif /* recom_steps_h */