weka.classifiers.immune.immunos
Class Antibody
java.lang.Object
weka.classifiers.immune.immunos.Antibody
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Antibody>
- Direct Known Subclasses:
- Immunos99Antibody
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Antibody
public Antibody(double[] aAttributes,
int aClassIndex)
Antibody
public Antibody(weka.core.Instance aInstance)
Antibody
public Antibody(Antibody aParent)
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.