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