Class NominalScale

All Implemented Interfaces:
Serializable, Measure

public class NominalScale extends CategoricalMeasure
Nominal variables take on a limited number of unordered values. Such variables are often referred to as categorical variables. Examples include gender, nationality, ethnicity, language, genre, style, biological species, etc.

The nominal type differentiates between items or subjects based only on their names or (meta-)categories and other qualitative classifications they belong to. Numbers may be used to represent the variables but the numbers have no specific numerical value or meaning. No form of arithmetic computation (+, −, ×, etc.) may be performed on nominal measures.

See Also:
  • Constructor Details

    • NominalScale

      public NominalScale(String... levels)
      Constructor.
      Parameters:
      levels - the levels of nominal values.
    • NominalScale

      public NominalScale(int[] values, String[] levels)
      Constructor.
      Parameters:
      values - the valid values.
      levels - the levels of discrete values.
    • NominalScale

      public NominalScale(List<String> levels)
      Constructor.
      Parameters:
      levels - the levels of discrete values.
    • NominalScale

      public NominalScale(Class<? extends Enum> clazz)
      Constructor.
      Parameters:
      clazz - an Enum class.
  • Method Details