### Question:
KernelDensity implements QuadratureRule { public double[] getPoints(){ return points; } KernelDensity(KernelFunction kernel, Bandwidth h, UniformQuadratureRule uniform); void increment(double x); double[] evaluate(); double[] evaluate(double[] x); double[] evaluate(double[] x, int index); double[] getPoints(); int getNumberOfPoints(); Bandwidth getBandwidth(); UnivariateFunction getInterpolater(); UnivariateFunction getInterpolater2(); double getPointAt(int index); double getDensityAt(int index); void setDensityAt(int index, double value); void setPointAt(int index, double value); double getMinimum(); double getMaximum(); double getMean(); double getStandardDeviation(); double[] standardize(boolean keepPoints);  }### Answer:
@Test public void testGetPoints() throws Exception { System.out.println("Testing kernel gridpoints"); GaussianKernel kernel = new GaussianKernel(); KernelDensity den = new KernelDensity(kernel, bw, points); for(int i=0;i<x.length;i++){ den.increment(x[i]); } double[] p = den.getPoints(); for(int i=0;i<p.length;i++){ assertEquals("Testing kernel gridpoints", trueGrid[i], p[i], 1e-10); } }