public static void performanceEstimator(Path path, int nbOcc , HashFunction func, int k){   	
    	SignificantWordsArraySample ws = new SignificantWordsArraySample(k, new LookUp3());	
    	for(String str: new WordReader(path)) {
    		ws.addWord(str);
    	}
    	
    	double a = benchmarkMiceNumber(path, nbOcc);
    	double b = ws.estimateMiceNumber(nbOcc);
    	
    	System.out.println("----------------------------------------------------------------");
    	System.out.println("For file " + path.getFileName());
    	System.out.println("The estimated number of " + nbOcc + "-mice is: " + b + ".");
    	System.out.println("The real number of " + nbOcc + "-mice is: " + a + ".");
    	System.out.println("The percentage error is: " + Math.abs(a-b)/a*100. + ".");
    	System.out.println("----------------------------------------------------------------");
    }