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

gov.sandia.cognition.learning.algorithm.clustering.divergence.AbstractClusterToClusterDivergenceFunction Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
/*
 * File:                AbstractClusterToClusterDivergenceFunction.java
 * Authors:             Justin Basilico
 * Company:             Sandia National Laboratories
 * Project:             Cognitive Foundry
 *
 * Copyright June 28, 2006, 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.annotation.CodeReview;
import gov.sandia.cognition.learning.algorithm.clustering.cluster.Cluster;
import gov.sandia.cognition.learning.function.distance.DefaultDivergenceFunctionContainer;
import gov.sandia.cognition.math.DivergenceFunction;

/**
 * The AbstractClusterToClusterDivergenceFunction class is an abstract class
 * that helps out implementations of ClusterToClusterDivergenceFunction
 * implementations by holding a DivergenceFunction between elements of a
 * cluster.
 *
 * @param  type of {@code Cluster} used in the
 * {@code learn()} method
 * @param  The algorithm operates on a {@code Collection},
 * so {@code DataType} will be something like Vector or String
 * @author Justin Basilico
 * @since 1.0
 */
@CodeReview(
    reviewer="Kevin R. Dixon",
    date="2008-07-23",
    changesNeeded=false,
    comments="Looks fine."
)
public abstract class AbstractClusterToClusterDivergenceFunction
        , DataType>
    extends DefaultDivergenceFunctionContainer
    implements ClusterToClusterDivergenceFunction
{
    
    /**
     * Creates a new instance of AbstractClusterToClusterDivergenceFunction
     *
     * @param  divergenceFunction The divergence function to use between 
     *         elements.
     */
    public AbstractClusterToClusterDivergenceFunction(
        final DivergenceFunction 
            divergenceFunction)
    {
        super( divergenceFunction );
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy