weka.classifiers.immune.clonalg
Class CSCAAntibody

java.lang.Object
  extended by weka.classifiers.immune.clonalg.Antibody
      extended by weka.classifiers.immune.clonalg.CSCAAntibody
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Antibody>

public class CSCAAntibody
extends Antibody

Type: CSCAAntibody
File: CSCAAntibody.java
Date: 23/01/2005

Description:

Author:
Jason Brownlee
See Also:
Serialized Form

Constructor Summary
CSCAAntibody(CSCAAntibody aParent)
           
CSCAAntibody(double[] aAttributes, int aClassIndex, int aNumClasses)
           
CSCAAntibody(weka.core.Instance aInstance)
           
 
Method Summary
 double calculateFitness()
           
 boolean canSwitchClass()
           
 void clearClassCounts()
           
 double getFitness()
           
 boolean hasMisClassified()
           
 void switchClasses()
           
 void updateClassCount(weka.core.Instance aInstance)
           
 
Methods inherited from class weka.classifiers.immune.clonalg.Antibody
compareTo, getAffinity, getAttributes, getClassification, getClassIndex, setAffinity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSCAAntibody

public CSCAAntibody(double[] aAttributes,
                    int aClassIndex,
                    int aNumClasses)

CSCAAntibody

public CSCAAntibody(weka.core.Instance aInstance)

CSCAAntibody

public CSCAAntibody(CSCAAntibody aParent)
Method Detail

updateClassCount

public void updateClassCount(weka.core.Instance aInstance)

clearClassCounts

public void clearClassCounts()

hasMisClassified

public boolean hasMisClassified()

canSwitchClass

public boolean canSwitchClass()

switchClasses

public void switchClasses()

calculateFitness

public double calculateFitness()

getFitness

public double getFitness()