public class Histogram { static int numBins = 10; public static void main (String[] argv) { int numSamples = 10000; int n = 5; histogramForU (n, numSamples); //histogramForV (n, numSamples); //histogramForW (n, numSamples); } static double computeU (int n) { return RandTool.uniform (); } static double computeV (int n) { // INSERT YOUR CODE HERE. } static double computeW (int n) { // INSERT YOUR CODE HERE. } // You don't need to modify any code below this but it's worth reading. static void histogramForU (int n, int numSamples) { // Generate the data set double[] data = new double [numSamples]; for (int k=0; k max) max = data[i]; } // Interval size. double interval = (max-min) / numBins; // Now count. for (int i=0; i= 0) && (whichBin < numBins) ) { bins[whichBin] ++; } } // Print histogram. for (int b=0; b