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