All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.davidbracewell.apollo.hash.LSHStorage Maven / Gradle / Ivy

The newest version!
package com.davidbracewell.apollo.hash;

import com.davidbracewell.apollo.linear.NDArray;

import java.util.Set;

/**
 * The interface Lsh storage.
 *
 * @author David B. Bracewell
 */
public interface LSHStorage {

   /**
    * Adds the given NDArray id to the LSH table.
    *
    * @param vector the vector
    * @param band   the band
    * @param bucket the bucket
    * @return the int
    */
   void add(NDArray vector, int band, int bucket);

   /**
    * Clear.
    */
   void clear();

   /**
    * Get int [ ].
    *
    * @param band   the band
    * @param bucket the bucket
    * @return the int [ ]
    */
   Set get(int band, int bucket);

}// END OF LSHStorage




© 2015 - 2025 Weber Informatics LLC | Privacy Policy