-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocalSampler.h
31 lines (24 loc) · 1.04 KB
/
LocalSampler.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
/***************************************************************************
*
* Local sampler with probe compleity p. Samples p bytes
* from a key X of length n bytes where X is represented as a
* matrix with c rows and n/c columns subject to the constraint
* that c divides p without remainder and that n, c and p and
* +ve integers
* Assume that the input binary format files containing the key X have
* variable length but that the total number of bytes in all the files is n.
* This recipe implements a random access facility for reading
* data from random ranges of bytes in the files.
*
***************************************************************************/
#ifndef HDR_BLAST_SAMPLER_H
#define HDR_BLAST_SAMPLER_H
#include <vector>
#include <string>
class LocalSampler
{
public:
LocalSampler() {};
unsigned long sample(const unsigned long n, const unsigned long p, const unsigned int *seed, const unsigned int seedLen, const std::vector<std::string> files, unsigned char* buffer);
};
#endif /* HDR_BLAST_SAMPLER_H */