net.sf.myra.datamining
Class Unit<V extends java.lang.Comparable<V>>

java.lang.Object
  extended by net.sf.myra.datamining.Unit<V>
All Implemented Interfaces:
java.lang.Comparable<Unit<V>>

public class Unit<V extends java.lang.Comparable<V>>
extends java.lang.Object
implements java.lang.Comparable<Unit<V>>

This class represents a unit of quality measurement for Model instances.

Author:
Fernando Esteban Barril Otero
See Also:
Measure

Nested Class Summary
static interface Unit.DoubleValued
          Interface to indicate a unit value which can be represented as a double.
 
Constructor Summary
Unit(V value)
          Default constructor.
 
Method Summary
 int compareTo(Unit<V> o)
           
 double doubleValue()
           
 V getValue()
          Return the quality measurement value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Unit

public Unit(V value)
Default constructor.

Parameters:
value - the quality measurement value.
Method Detail

getValue

public V getValue()
Return the quality measurement value.

Returns:
the quality measurement value.

toString

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

compareTo

public int compareTo(Unit<V> o)
Specified by:
compareTo in interface java.lang.Comparable<Unit<V extends java.lang.Comparable<V>>>

doubleValue

public double doubleValue()


Copyright © 2013. All Rights Reserved.