weka.classifiers.immune.clonalg
Class Antibody

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

public class Antibody
extends java.lang.Object
implements java.lang.Comparable<Antibody>, java.io.Serializable

Type: Antibody
Date: 19/01/2005

Description:

Author:
Jason Brownlee
See Also:
Serialized Form

Constructor Summary
Antibody(Antibody aParent)
           
Antibody(double[] aAttributes, int aClassIndex)
           
Antibody(weka.core.Instance aInstance)
           
 
Method Summary
 int compareTo(Antibody other)
          Compares this object with the specified object for order.
 double getAffinity()
           
 double[] getAttributes()
           
 double getClassification()
           
 int getClassIndex()
           
 void setAffinity(double affinity)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Antibody

public Antibody(double[] aAttributes,
                int aClassIndex)

Antibody

public Antibody(weka.core.Instance aInstance)

Antibody

public Antibody(Antibody aParent)
Method Detail

getClassification

public double getClassification()

compareTo

public int compareTo(Antibody other)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Ascending order meaning smallest value to the largest value. This is infact decending order in regard to affinity quality, as the lower the value the higher the affinity

Specified by:
compareTo in interface java.lang.Comparable<Antibody>

getAttributes

public double[] getAttributes()
Returns:
Returns the attributes.

getClassIndex

public int getClassIndex()
Returns:
Returns the classIndex.

getAffinity

public double getAffinity()
Returns:
Returns the affinity.

setAffinity

public void setAffinity(double affinity)
Parameters:
affinity - The affinity to set.