/** * Restarts the query with a new center point. * @param nMin new minimum result count, often called 'k' * @param dist new distance function. Using 'null' will result in reusing the previous * distance function. * @param center new center point * @return this */ public PhKnnQueryF<T> reset(int nMin, PhDistance dist, double... center) { pre.pre(center, lCenter); q.reset(nMin, dist, lCenter); return this; } }
/** * Resets the current kNN query with new parameters. * @param nMin minimum results to be returned * @param newDist Distance function. Supplying 'null' uses the default distance function * for the current preprocessor. * @param center the center point * @return this query instance */ public PhKnnQuerySF<T> reset(int nMin, PhDistance newDist, double[] center) { pre.pre(center, center, lCenterBuffer); q.reset(nMin, newDist, lCenterBuffer); return this; }