![JAR search and dependency download from the Maven repository](/logo.png)
src.it.unimi.di.law.vector.SimilarityStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of archive4j Show documentation
Show all versions of archive4j Show documentation
Archive4J is a suite of tools to store compactly term/count information of a document collection.
package it.unimi.di.law.vector;
/*
* Copyright (C) 2008-2013 Paolo Boldi, Massimo Santini and Sebastiano Vigna
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, see .
*
*/
import java.io.Serializable;
//RELEASE-STATUS: DIST
/** An interface specifying methods used to obtain pattern similarities. */
public interface SimilarityStrategy extends Serializable{
/** Returns the similarity value between two vectors.
*
* @param v0 the first vector.
* @param v1 the second vector.
* @return the similarity between vectors.
*/
public double similarity (Vector v0, Vector v1);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy