Class Prediction

java.lang.Object
  extended by Prediction
public class Prediction
extends java.lang.Object

Class Prediction

Version:
1.0
Author:
Fabien Torre

Constructor Summary
Prediction()
           
 
Method Summary
 double getConfidence()
           
 int getPredictedClass()
           
 java.lang.Boolean isGoodClassification(int k)
           
 java.lang.Boolean isMisclassified(int k)
           
 java.lang.Boolean noPrediction()
           
 void setNoPrediction()
           
 void setPredictedClass(int k, double c)
           
 java.lang.String toString()
          Transforms a prediction into a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Prediction

public Prediction()
Method Detail

setPredictedClass

public void setPredictedClass(int k,
                              double c)

setNoPrediction

public void setNoPrediction()

isGoodClassification

public java.lang.Boolean isGoodClassification(int k)

isMisclassified

public java.lang.Boolean isMisclassified(int k)

noPrediction

public java.lang.Boolean noPrediction()

getPredictedClass

public int getPredictedClass()

getConfidence

public double getConfidence()

toString

public java.lang.String toString()
Transforms a prediction into a String.

Overrides:
toString in class java.lang.Object