gov.sandia.cognition.learning.algorithm.clustering.divergence.WithinClusterDivergence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognitive-foundry Show documentation
Show all versions of cognitive-foundry Show documentation
A single jar with all the Cognitive Foundry components.
/*
* File: WithinClusterDivergenceWrapper.java
* Authors: Andrew Fisher
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright July 12, 2016, Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000, there is a non-exclusive license for use of this work by
* or on behalf of the U.S. Government. Export of this program may require a
* license from the United States Government. See CopyrightHistory.txt for
* complete details.
*/
package gov.sandia.cognition.learning.algorithm.clustering.divergence;
import gov.sandia.cognition.learning.algorithm.clustering.cluster.Cluster;
import gov.sandia.cognition.util.CloneableSerializable;
import java.io.Serializable;
/**
* Defines a function that computes the divergence of the elements in a cluster.
*
* @param type of {@code Cluster} used in the
* {@code evalute()} method.
* @param type of data in the cluster.
*
* @author Andrew N. Fisher <[email protected]>
*/
public interface WithinClusterDivergence, DataType>
extends Cloneable, CloneableSerializable, Serializable
{
/**
* Evaluates the divergence within a cluster.
*
* @param cluster
* Cluster to evaluate the divergence for.
* @return
* The divergence for the cluster.
*/
public double evaluate(
ClusterType cluster);
}