/** * Construct the FloatNearestNeighboursKDTree with the given options. * * @param pnts the data * @param ntrees the number of trees * @param nchecks the number of checks during search */ public FloatNearestNeighboursKDTree(final float [][] pnts, int ntrees, int nchecks) { kdt = new FloatKDTreeEnsemble(pnts, ntrees); this.nchecks = nchecks; }
/** * Construct the FloatNearestNeighboursKDTree with the given options. * * @param pnts the data * @param ntrees the number of trees * @param nchecks the number of checks during search */ public FloatNearestNeighboursKDTree(final float [][] pnts, int ntrees, int nchecks) { kdt = new FloatKDTreeEnsemble(pnts, ntrees); this.nchecks = nchecks; }