net.sf.myra.datamining
Class ConvergenceTest

java.lang.Object
  extended by net.sf.myra.datamining.ConvergenceTest
All Implemented Interfaces:
net.sf.myra.framework.StopCondition

public class ConvergenceTest
extends java.lang.Object
implements net.sf.myra.framework.StopCondition

This class represents the convergence stop condition. It tests if the colony of ants have converged to a single solution over a specified number of iterations.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Field Summary
static java.lang.String CONVERGENCE_TEST_SIZE
          The property key under which the convergence test size value is stored.
static int DEFAULT_CONVERGENCE_TEST_SIZE
          The default convergence test size.
 
Constructor Summary
ConvergenceTest()
          Creates a new ConvergenceTest instance.
ConvergenceTest(int size)
          Creates a new ConvergenceTest instance.
 
Method Summary
 boolean isReached(net.sf.myra.framework.Environment environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONVERGENCE_TEST_SIZE

public static final java.lang.String CONVERGENCE_TEST_SIZE
The property key under which the convergence test size value is stored.

See Also:
Constant Field Values

DEFAULT_CONVERGENCE_TEST_SIZE

public static final int DEFAULT_CONVERGENCE_TEST_SIZE
The default convergence test size.

See Also:
Constant Field Values
Constructor Detail

ConvergenceTest

public ConvergenceTest()
Creates a new ConvergenceTest instance.


ConvergenceTest

public ConvergenceTest(int size)
Creates a new ConvergenceTest instance.

Parameters:
size - the number of rules used to test the convergence of the ants.
Method Detail

isReached

public boolean isReached(net.sf.myra.framework.Environment environment)
Specified by:
isReached in interface net.sf.myra.framework.StopCondition


Copyright © 2013. All Rights Reserved.