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