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

net.sourceforge.cilib.util.distancemeasure.DistanceMeasure Maven / Gradle / Ivy

Go to download

A library of composable components enabling simpler Computational Intelligence

There is a newer version: 0.8
Show newest version
/**           __  __
 *    _____ _/ /_/ /_    Computational Intelligence Library (CIlib)
 *   / ___/ / / / __ \   (c) CIRG @ UP
 *  / /__/ / / / /_/ /   http://cilib.net
 *  \___/_/_/_/_.___/
 */
package net.sourceforge.cilib.util.distancemeasure;

import java.util.Collection;
import net.sourceforge.cilib.type.types.Numeric;
import net.sourceforge.cilib.type.types.container.StructuredType;

/**
 * Definition of how to determine the distance between two objects.
 *
 */
public interface DistanceMeasure {

    /**
     * Determine the distance between the two provided {@link StructuredType}
     * instances.
     * @param x The first object from which the calculation is to be performed.
     * @param y The second object from which the calculation is to be performed.
     * @return The distance between the provided instances.
     */
    double distance(Collection x, Collection y);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy