DeduplicationImage / src /hash_func.h
w4nn4b3M4ST3R's picture
v2
daea7f9 verified
raw
history blame contribute delete
493 Bytes
#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