JAGA Homepage

org.jaga.selection
Class ClassifierFitness

java.lang.Object
  extended by org.jaga.selection.AbsoluteFitness
      extended by org.jaga.selection.ClassifierFitness
All Implemented Interfaces:
Fitness

public class ClassifierFitness
extends AbsoluteFitness

TODO: Complete these comments.

Project: JAGA - Java API for Genetic Algorithms.

Company: University College London and JAGA.Org (http://www.jaga.org).

Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ONLY if you include a note of the original author(s) in any redistributed/modified copy.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/gpl.html

Version:
JAGA public release 1.0 beta
Author:
Greg Paperin (greg@jaga.org)

Field Summary
private  int falseNegatives
           
private  int falsePositives
           
private  double sensitivity
           
private  double specificity
           
private  int trueNegatives
           
private  int truePositives
           
 
Constructor Summary
private ClassifierFitness()
           
  ClassifierFitness(int truePositive, int trueNegative, int falsePositive, int falseNegative, double sensitivity, double specificity, double fitnessValue)
           
 
Method Summary
 int getFalseNegatives()
           
 int getFalsePositives()
           
 double getSensitivity()
          in medical sence
 double getSpecificity()
          in medical sence
 int getTrueNegatives()
           
 int getTruePositives()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jaga.selection.AbsoluteFitness
getValue, isBetter, isWorse, resetValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

truePositives

private int truePositives

trueNegatives

private int trueNegatives

falsePositives

private int falsePositives

falseNegatives

private int falseNegatives

sensitivity

private double sensitivity

specificity

private double specificity
Constructor Detail

ClassifierFitness

private ClassifierFitness()

ClassifierFitness

public ClassifierFitness(int truePositive,
                         int trueNegative,
                         int falsePositive,
                         int falseNegative,
                         double sensitivity,
                         double specificity,
                         double fitnessValue)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class AbsoluteFitness

getFalseNegatives

public int getFalseNegatives()

getFalsePositives

public int getFalsePositives()

getTrueNegatives

public int getTrueNegatives()

getTruePositives

public int getTruePositives()

getSensitivity

public double getSensitivity()
in medical sence


getSpecificity

public double getSpecificity()
in medical sence


JAGA Homepage

Go to JAGA Homepage