org.apache.mahout.ga.watchmaker.cd
Class CDFitness
java.lang.Object
org.apache.mahout.ga.watchmaker.cd.CDFitness
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class CDFitness
- extends java.lang.Object
- implements org.apache.hadoop.io.Writable
Fitness of the class discovery problem.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CDFitness
public CDFitness()
CDFitness
public CDFitness(CDFitness f)
CDFitness
public CDFitness(int tp,
int fp,
int tn,
int fn)
getTp
public int getTp()
getFp
public int getFp()
getTn
public int getTn()
getFn
public int getFn()
add
public void add(CDFitness f)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
get
public double get()
- Calculates the fitness corresponding to this evaluation.
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.