net.sf.myra.datamining
Class DefaultConfidenceFactor

java.lang.Object
  extended by net.sf.myra.datamining.DefaultConfidenceFactor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<net.sf.myra.framework.Cost>, ConfidenceFactor, net.sf.myra.framework.Cost

public class DefaultConfidenceFactor
extends java.lang.Object
implements ConfidenceFactor

This class represents the confidence factor measure.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero
See Also:
ConfidenceEvaluator, Serialized Form

Constructor Summary
DefaultConfidenceFactor(java.util.Map<java.lang.String,java.lang.Integer> mapping)
           
 
Method Summary
 ConfidenceFactor clone()
           
 int compareTo(net.sf.myra.framework.Cost o)
           
 int compareTo(DefaultConfidenceFactor o)
           
 int get(java.lang.String label)
          Returns the number of covered examples for the specified class label.
 java.util.Map<java.lang.String,java.lang.Integer> getMapping()
          Returns the rule's covering examples mapping.
 double getValue()
          Returns the confidence factor value.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfidenceFactor

public DefaultConfidenceFactor(java.util.Map<java.lang.String,java.lang.Integer> mapping)
Method Detail

getMapping

public java.util.Map<java.lang.String,java.lang.Integer> getMapping()
Returns the rule's covering examples mapping.

Returns:
the rule's covering examples mapping.

get

public int get(java.lang.String label)
Returns the number of covered examples for the specified class label.

Parameters:
label - the class label.
Returns:
the number of covered examples for the specified class label.

getValue

public double getValue()
Returns the confidence factor value.

Specified by:
getValue in interface net.sf.myra.framework.Cost
Returns:
the confidence factor value.

compareTo

public int compareTo(net.sf.myra.framework.Cost o)
Specified by:
compareTo in interface java.lang.Comparable<net.sf.myra.framework.Cost>

compareTo

public int compareTo(DefaultConfidenceFactor o)

clone

public ConfidenceFactor clone()
Specified by:
clone in interface ConfidenceFactor
Specified by:
clone in interface net.sf.myra.framework.Cost
Overrides:
clone in class java.lang.Object


Copyright © 2013. All Rights Reserved.