Returns the name used for the i 'th categorical attribute. @param i the i th attribute. @return the name used for the i 'th categorical attribute.
(int i )
| 95 | * @return the name used for the <tt>i</tt>'th categorical attribute. |
| 96 | */ |
| 97 | public String getCategoryName(int i ) |
| 98 | { |
| 99 | if(i < getNumCategoricalVars() && i >= 0) |
| 100 | return categories[i].getCategoryName(); |
| 101 | else |
| 102 | throw new IndexOutOfBoundsException("Can not acces variable for invalid index " + i ); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Applies the given transformation to all points in this data set, |