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

smile.math.distance.Metric Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
/******************************************************************************
 *                   Confidential Proprietary                                 *
 *         (c) Copyright Haifeng Li 2011, All Rights Reserved                 *
 ******************************************************************************/

package smile.math.distance;

/**
 * A metric function defines a distance between elements of a set. Besides
 * non-negativity, isolation, and symmetry, it also has to satisfy triangular
 * inequality.
 * 
    *
  • non-negativity: d(x, y) ≥ 0 *
  • isolation: d(x, y) = 0 if and only if x = y *
  • symmetry: d(x, y) = d(x, y) *
  • triangular inequality: d(x, y) + d(y, z) ≥ d(x, z). *
. * * @author Haifeng Li */ public interface Metric extends Distance { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy