Class NumericAttribute


  • public class NumericAttribute
    extends Attribute
    Stores information for a numeric attribute. A numeric attribute has a name. Its domain is the real numbers.
    • Constructor Summary

      Constructors 
      Constructor Description
      NumericAttribute()
      Default constructor.
      NumericAttribute​(java.lang.String name)
      Explicit constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      int size()
      Returns a string representation of this NumericAttribute.
      java.lang.String toString()
      Returns a string representation of this NumericAttribute.
      boolean validValue​(java.lang.Double value)
      Returns whether the specified value is valid for a numeric attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NumericAttribute

        public NumericAttribute()
        Default constructor.
      • NumericAttribute

        public NumericAttribute​(java.lang.String name)
        Explicit constructor. Creates a numeric attribute set of the specified name.
        Parameters:
        name - the name of this data set
    • Method Detail

      • size

        public int size()
        Returns a string representation of this NumericAttribute.
        Specified by:
        size in class Attribute
        Returns:
        a string representation of this NumericAttribute
      • toString

        public java.lang.String toString()
        Returns a string representation of this NumericAttribute.
        Overrides:
        toString in class Attribute
        Returns:
        a string representation of this NumericAttribute
      • validValue

        public boolean validValue​(java.lang.Double value)
        Returns whether the specified value is valid for a numeric attribute.
        Parameters:
        value - the value for testing
        Returns:
        true if the value is valid; false otherwise
      • main

        public static void main​(java.lang.String[] args)