org.android.activityminer.model.evaluation
Class PerClassResult

Package class diagram package PerClassResult
java.lang.Object
  extended by org.android.activityminer.model.evaluation.PerClassResult

public final class PerClassResult
extends Object

The evaluation per class result represented by TP, FP, TN and FN values.


Field Summary
private  double fn
          The false negative count.
private  double fp
          The false positive count.
private  double tn
          The true negative count.
private  double tp
          The true positive count.
 
Constructor Summary
PerClassResult(double tp, double fp, double tn, double fn)
          Constructor
 
Method Summary
 double getAccuracy()
          Getter for the accuracy for this class.
 double getFalseNegativeRate()
          Getter for the proportion of positive samples that have been predicted incorrectly (false negative rate, also known as miss-rate).
 double getFalseNegatives()
          Getter for the count of samples which belongs to the class, but have been incorrect predicted as member of another class (false negatives).
 double getFalsePositiveRate()
          Getter for the proportion of real positive samples that have been predicted incorrectly as negative (false positive rate, also known as fall-out).
 double getFalsePositives()
          Getter for the count of samples which have been incorrect predicted as members of the class (false positives).
 double getFMeasure()
          Getter for F-Measure (the double harmonic mean of precision and recall).
 double getPrecision()
          Getter for the proportion of the predicted positive samples that are correct (precision, also known as positive predictive value).
private  double getRealNegatives()
          Getter for the total count of real negatives.
private  double getRealPositives()
          Getter for the total count of real positives .
 double getRecall()
          Getter for the recall.
private  double getTotalPositivePredicted()
          Getter for the total count of predicted positives.
 double getTrueNegativeRate()
          Getter for the proportion of negative samples that have been predicted correctly (true negative rate, also known as specificity or correct rejection rate).
 double getTrueNegatives()
          Getter for the count of samples which have been correct predicted as no members of the class (true negatives).
 double getTruePositiveRate()
          Getter for the proportion of positive samples that have been predicted correctly (true positive rate, also known as recall or hit-rate).
 double getTruePositives()
          Getter for the count of correct classified samples of the class (true positives).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tp

private final double tp
The true positive count.


fp

private final double fp
The false positive count.


tn

private final double tn
The true negative count.


fn

private final double fn
The false negative count.

Constructor Detail

PerClassResult

public PerClassResult(double tp,
                      double fp,
                      double tn,
                      double fn)
Constructor

Parameters:
tp - the true positive count
fp - the false positive count
tn - the true negative count
fn - the false negative count
Method Detail

getTruePositives

public final double getTruePositives()
Getter for the count of correct classified samples of the class (true positives).

Returns:
the count of true positives

getFalsePositives

public final double getFalsePositives()
Getter for the count of samples which have been incorrect predicted as members of the class (false positives).

Returns:
the count of false positives

getTrueNegatives

public final double getTrueNegatives()
Getter for the count of samples which have been correct predicted as no members of the class (true negatives).

Returns:
the count of true negatives

getFalseNegatives

public final double getFalseNegatives()
Getter for the count of samples which belongs to the class, but have been incorrect predicted as member of another class (false negatives).

Returns:
the count of false negatives

getRealPositives

private final double getRealPositives()
Getter for the total count of real positives .

Returns:
the total count of real positives

getRealNegatives

private final double getRealNegatives()
Getter for the total count of real negatives.

Returns:
the total count of real negatives

getTotalPositivePredicted

private final double getTotalPositivePredicted()
Getter for the total count of predicted positives.

Returns:
the total count of predicted positives

getAccuracy

public final double getAccuracy()
Getter for the accuracy for this class.

Returns:
the accuracy for this class

getTruePositiveRate

public final double getTruePositiveRate()
Getter for the proportion of positive samples that have been predicted correctly (true positive rate, also known as recall or hit-rate).

Returns:
the true positive rate

getFalseNegativeRate

public final double getFalseNegativeRate()
Getter for the proportion of positive samples that have been predicted incorrectly (false negative rate, also known as miss-rate).

Returns:
the false negative rate

getTrueNegativeRate

public final double getTrueNegativeRate()
Getter for the proportion of negative samples that have been predicted correctly (true negative rate, also known as specificity or correct rejection rate).

Returns:
the true negative rate

getFalsePositiveRate

public final double getFalsePositiveRate()
Getter for the proportion of real positive samples that have been predicted incorrectly as negative (false positive rate, also known as fall-out).

Returns:
the false positive rate

getRecall

public final double getRecall()
Getter for the recall.

Returns:
the recall

getPrecision

public final double getPrecision()
Getter for the proportion of the predicted positive samples that are correct (precision, also known as positive predictive value).

Returns:
the precision

getFMeasure

public final double getFMeasure()
Getter for F-Measure (the double harmonic mean of precision and recall).

Returns:
the F-Measure