### Question:
ScottsBandwidth implements Bandwidth { public double value(){ StandardDeviation sd = new StandardDeviation(); double q3 = pcntl.evaluate(x, 75.0); double q1 = pcntl.evaluate(x, 25.0); double IQR = (q3-q1)/1.34; double s = sd.evaluate(x); double N = (double)x.length; double m = Math.min(s, IQR); return 1.06*m*Math.pow(N, -1.0/5.0)*adjustmentFactor; } ScottsBandwidth(double[] x);  ScottsBandwidth(double[] x, double adjustmentFactor); double value(); double getAdjustmentFactor();  }### Answer:
@Test public void testValue() throws Exception { System.out.print("Scott's bandwidth test: "); ScottsBandwidth scott = new ScottsBandwidth(x); double expResult = 5.84676453424025; double obsResult = scott.value(); System.out.println(obsResult); assertEquals("Scott's bandwidth test", expResult, obsResult, 1e-10); }