congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
PhTreeSolidF$PhKnnQuerySF
Code IndexAdd Tabnine to your IDE (free)

How to use
PhTreeSolidF$PhKnnQuerySF
in
ch.ethz.globis.phtree

Best Java code snippets using ch.ethz.globis.phtree.PhTreeSolidF$PhKnnQuerySF (Showing top 5 results out of 315)

origin: ch.ethz.globis.phtree/phtree

/**
 * Locate nearest neighbours for a given point in space.
 * @param nMin number of entries to be returned. More entries may or may not be returned if 
 * several points have the same distance.
 * @param distanceFunction A distance function for rectangle data. This parameter is optional,
 * passing a {@code null} will use the default distance function.
 * @param center the center point
 * @return The query iterator.
 */
public PhKnnQuerySF<T> nearestNeighbour(int nMin, PhDistanceSF distanceFunction,
    double ... center) {
  long[] lCenter = new long[2*dims];
  pre.pre(center, center, lCenter);
  PhDistanceSF df = distanceFunction == null ? dist : distanceFunction;
  return new PhKnnQuerySF<>(pht.nearestNeighbour(nMin, df, null, lCenter), dims, pre);
}
origin: tzaeschke/tinspin-indexes

@Override
public boolean hasNext() {
  return iter.hasNext();
}
origin: tzaeschke/tinspin-indexes

@Override
public RectangleEntryDist<T> next() {
  //This reuses the entry object, but we have to clone the arrays...
  PhEntryDistSF<T> e = iter.nextEntryReuse();
  return new DistEntryR<>(e.lower().clone(), e.upper().clone(), e.value(), e.dist());
}
origin: tzaeschke/tinspin-indexes

@Override
public QueryIteratorKnnPH<T> reset(double[] center, int k) {
  iter.reset(k, null, center);
  return this;
}

origin: ch.ethz.globis.phtree/phtree

@Override
public T next() {
  return nextValue();
}
@Override
ch.ethz.globis.phtreePhTreeSolidF$PhKnnQuerySF

Javadoc

Nearest neighbor query class for solids/rectangles.

Most used methods

  • <init>
  • hasNext
  • nextEntryReuse
  • nextValue
  • reset
    Resets the current kNN query with new parameters.

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now