mulan.dimensionalityReduction
Class BinaryRelevanceAttributeEvaluator.Rank

java.lang.Object
  extended by mulan.dimensionalityReduction.BinaryRelevanceAttributeEvaluator.Rank
All Implemented Interfaces:
Comparable
Enclosing class:
BinaryRelevanceAttributeEvaluator

public class BinaryRelevanceAttributeEvaluator.Rank
extends Object
implements Comparable

a wrapper class for score-based attribute ranking


Constructor Summary
BinaryRelevanceAttributeEvaluator.Rank(double score, int index)
          constructor
 
Method Summary
 int compareTo(Object o)
           
 int getIndex()
          Returns the index of the attribute
 double getScore()
          Returns the score of the attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryRelevanceAttributeEvaluator.Rank

public BinaryRelevanceAttributeEvaluator.Rank(double score,
                                              int index)
constructor

Parameters:
score - the score to be given
index - the index to be given
Method Detail

getScore

public double getScore()
Returns the score of the attribute

Returns:
score of the attribute

getIndex

public int getIndex()
Returns the index of the attribute

Returns:
index of the attribute

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable