/** * Add a new Vector to the Searcher that will be checked when getting * the nearest neighbors. * <p/> * The vector IS NOT CLONED. Do not modify the vector externally otherwise the internal * Searcher data structures could be invalidated. */ @Override public void add(Vector vector) { initialize(vector.size()); pendingAdditions.add(vector); }
/** * Add a new Vector to the Searcher that will be checked when getting * the nearest neighbors. * <p/> * The vector IS NOT CLONED. Do not modify the vector externally otherwise the internal * Searcher data structures could be invalidated. */ @Override public void add(Vector vector) { initialize(vector.size()); pendingAdditions.add(vector); }
/** * Add a new Vector to the Searcher that will be checked when getting * the nearest neighbors. * <p/> * The vector IS NOT CLONED. Do not modify the vector externally otherwise the internal * Searcher data structures could be invalidated. */ @Override public void add(Vector vector) { initialize(vector.size()); pendingAdditions.add(vector); }