After upgrading ddogleg to 0.18, the following part of my code no longer compiles:
NearestNeighbor<Point2D_F32> nn = FactoryNearestNeighbor.kdtree(new KdTreePoint2D_F32());
List<Point2D_F32> centersList = new ArrayList<>(centers.size());
for (Map.Entry<Integer, Point2D_F32> entry : centers.entrySet()) {
centersList.add(entry.getValue());
}
nn.setPoints(centersList, true);
NearestNeighbor.Search<Point2D_F32> search = nn.createSearch();
NnData<Point2D_F32> result = new NnData<>();
// 4 should be enough...
FastQueue<NnData<Point2D_F32>> fResults = new FastQueue(4, result.getClass(), true);
The particulra FastQueue constructor that I used here is no longer present. The constructors I can find all use a Factory<T> object, but it is unclear to me how to construct one. Also, I can no longer find FastQueue in the Javadoc to ddogleg 0.19, so maybe I should replace this with something very different altogether? All advice appreciated!
Best,
Nico