Interface Measure

All Superinterfaces:
Serializable
All Known Implementing Classes:
CategoricalMeasure, IntervalScale, NominalScale, NumericalMeasure, OrdinalScale, RatioScale

public interface Measure extends Serializable
Level of measurement or scale of measure is a classification that describes the nature of information within the values assigned to variables. Psychologist Stanley Smith Stevens developed the best-known classification with four levels, or scales, of measurement: nominal, ordinal, interval, and ratio. Each scale of measurement has certain properties which in turn determines the appropriateness for use of certain statistical analyses.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RatioScale
    Currency.
    static final RatioScale
    Percent.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the string representation of an object in the measure.
    Returns a measurement value object represented by the argument string s.
  • Field Details

    • Currency

      static final RatioScale Currency
      Currency.
    • Percent

      static final RatioScale Percent
      Percent.
  • Method Details

    • valueOf

      Number valueOf(String s) throws NumberFormatException
      Returns a measurement value object represented by the argument string s.
      Parameters:
      s - a string.
      Returns:
      the parsed value.
      Throws:
      NumberFormatException
    • toString

      String toString(Object o)
      Returns the string representation of an object in the measure.
      Parameters:
      o - an object.
      Returns:
      the string representation