-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable.h
36 lines (27 loc) · 811 Bytes
/
table.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
31
32
33
34
35
36
#ifndef TABLE_H_ /* Include guard */
#define TABLE_H_
#include <iostream>
#include <vector>
#include <cmath>
#include "gsl/gsl_rng.h" // rng , rng_uniform
#include "gsl/gsl_randist.h" // ran_multinomial
#include <cstdlib> // std::rand, std::srand
#include <cstring>
#include "config.h"
using namespace std;
class table
{
public:
int N_MAX; // max number of data buckets or keys
int Total_Size; // number of traces in the table
vector<double> data; // All the data
vector<int> H; // All the hidden rank variables
gsl_rng* _rng;
gsl_rng* _rng_get_samp;
public:
table(int Total_Size, int N_MAX);
void gsl_env_setup();
long double Join(table othr_tbl);
vector<int> get_samples(int Sample_Size,int seeder);
};
#endif // TABLE_H_