public static void displaySlidingWindows(Path path, HashFunction func, int b, int windowSize, int precision) {
    	Double[] tab = slidingWindow(path, func, b, windowSize, precision);
    	double[] doubleTab = new double[tab.length];
    	for (int i = 0; i < tab.length; i++)
    		doubleTab[i] = tab[i];
    	
    	// Do the plotting
    	Plot2DPanel plot = new Plot2DPanel();
    	plot.addLinePlot("test", doubleTab);
    	JFrame frame = new JFrame("Evolution of the estimate number of different words among the "
    			+ windowSize +" last words.");
    	frame.setSize(600, 600);
    	frame.setContentPane(plot);
    	frame.setVisible(true);
    	frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    }