m_FirstIndex.setUpper(instanceInfo.
attribute(m_AttIndex.getIndex()).numValues() - 1);
m_SecondIndex.setUpper(instanceInfo.
attribute(m_AttIndex.getIndex()).numValues() - 1);
if (!instanceInfo.attribute(m_AttIndex.getIndex()).isNominal()) {
throw new UnsupportedAttributeTypeException("Chosen attribute not nominal.");
}
if (instanceInfo.attribute(m_AttIndex.getIndex()).numValues() < 2) {
throw new UnsupportedAttributeTypeException("Chosen attribute has less than "
+ "two values.");
}
setOutputFormat();
return true;
}