class EntropySketch implements IEntropy {

    public double entropy() {
        double sum = 0.0;
        
        for (double d : data) {
            double tmp = d / (double)count;
            sum += Math.exp(tmp);
        }
        
        return -(Math.log(sum / (double)data.length) / Math.log(2));
    }

    public  EntropySketch(int k);
    public  EntropySketch(int k, long seed);
    public  EntropySketch(int k, long seed, Hash hasher);

}