@Throws(Exception::class) fun NominalItem(att: Attribute, valueIndex: Int) { super(att) if (att.isNumeric()) { throw Exception("NominalItem must be constructed using a nominal attribute") } m_attribute = att if (m_attribute.numValues() === 1) { m_valueIndex = 0 } else { m_valueIndex = valueIndex } }
Constructs a new NominalItem .