Class NumericalMeasure

java.lang.Object
smile.data.measure.NumericalMeasure
All Implemented Interfaces:
Serializable, Measure
Direct Known Subclasses:
IntervalScale, RatioScale

public abstract class NumericalMeasure extends Object implements Measure
Numerical data, also called quantitative data. Numerical data may be discrete or continuous. Continuous data may be subdivided into interval data and ratio data.
See Also:
  • Constructor Details

    • NumericalMeasure

      public NumericalMeasure(NumberFormat format)
      Constructor.
      Parameters:
      format - the number format.
  • Method Details

    • toString

      public String toString(Object o)
      Description copied from interface: Measure
      Returns the string representation of an object in the measure.
      Specified by:
      toString in interface Measure
      Parameters:
      o - an object.
      Returns:
      the string representation
    • valueOf

      public Number valueOf(String s) throws NumberFormatException
      Description copied from interface: Measure
      Returns a measurement value object represented by the argument string s.
      Specified by:
      valueOf in interface Measure
      Parameters:
      s - a string.
      Returns:
      the parsed value.
      Throws:
      NumberFormatException