### Question:
LikelihoodCrossValidation implements Bandwidth, UnivariateFunction { public double value(double h){ double sum = 0.0; for(int i=0;i<n;i++){ sum += Math.log(densityAt(i, h)); } return sum /= (double)n; } LikelihoodCrossValidation(KernelFunction kernel, double[] x); double value(double h); double value(); double getAdjustmentFactor();  }### Answer:
@Test public void testValue() throws Exception { ScottsBandwidth scott = new ScottsBandwidth(x); System.out.println(scott.value()); GaussianKernel kern = new GaussianKernel(); LikelihoodCrossValidation lcv = new LikelihoodCrossValidation(kern, x); System.out.println(lcv.value()); }