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

info.debatty.java.graphs.SimilarityInterface Maven / Gradle / Ivy

Go to download

Algorithms that build k-nearest neighbors graph (k-nn graph): Brute-force, NN-Descent,...

The newest version!
package info.debatty.java.graphs;

import java.io.Serializable;

/**
 *
 * @author tibo
 * @param 
 */
public interface SimilarityInterface extends Serializable {

    /**
     * Compute the similarity between two nodes.
     * @param node1
     * @param node2
     * @return
     */
    double similarity(final T node1, final T node2);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy