@Test public void testThatGetMedianPointReturnsTheCorrectNicGeoPoint() { addPointToHistory(5.0, 5.0); addPointToHistory(5.0, 5.0); addPointToHistory(5.0, 5.0); addPointToHistory(6.0, 6.0); addPointToHistory(6.0, 6.0); assertEquals(5.0, history.getMedianPoint().getX(), delta); assertEquals(5.0, history.getMedianPoint().getY(), delta); }
public NicGeoPoint getMedianPoint() { final PointList pointList = new PointList(new NicGeoPointFactory(), geoPoints); return pointList.getMedianPoint(); }
History { public NicGeoPoint getMedianPoint() { final PointList pointList = new PointList(new NicGeoPointFactory(), geoPoints); return pointList.getMedianPoint(); } }
History { public NicGeoPoint getMedianPoint() { final PointList pointList = new PointList(new NicGeoPointFactory(), geoPoints); return pointList.getMedianPoint(); } History(final int maxGeoPointHistory); }
History { public NicGeoPoint getMedianPoint() { final PointList pointList = new PointList(new NicGeoPointFactory(), geoPoints); return pointList.getMedianPoint(); } History(final int maxGeoPointHistory); void add(final NicGeoPoint geoPoint); NicGeoPoint getMedianPoint(); NicGeoPoint getAveragePoint(); List<NicGeoPoint> getGeoPoints(); }
History { public NicGeoPoint getMedianPoint() { final PointList pointList = new PointList(new NicGeoPointFactory(), geoPoints); return pointList.getMedianPoint(); } History(final int maxGeoPointHistory); void add(final NicGeoPoint geoPoint); NicGeoPoint getMedianPoint(); NicGeoPoint getAveragePoint(); List<NicGeoPoint> getGeoPoints();  }