Class: Categorical_Attribute

Categorical_Attribute

A subclass of 'Attribute' representing a categorical attribute.

Constructor

new Categorical_Attribute(name, possible_values, dataset_reference)

Parameters:
Name Type Description
name String This attribute's name e.g., colour, day, gender.
possible_values Array.<String> the values that this attribute can have.
dataset_reference Dataset The dataset it will belong to.
Source:

Members

possible_values :Array.<String>

Type:
  • Array.<String>
Source:

Methods

is_possible_value(value)

Checks if the value is a possible value for this attribute.
Parameters:
Name Type Description
value String The value to check.
Source:
Returns:
True if possible, False if not.