File size: 493 Bytes
daea7f9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef HASH_FUNC_H
#define HASH_FUNC_H
#include <iostream>
#include <vector>
#include <random>
#include <functional>

class hashFunc {
    protected:
        std::vector<double> data;
        int bit;
    public:
        hashFunc (std::vector<double>& data, int bit) : data (data), bit (bit) {}
        ~hashFunc () {} 
        virtual int distance (std::vector<double>& other)=0;
        virtual bool hash () = 0;
        std::vector<int> simpleHash (double);

};

#endif