|
Oracle Data Mining Java API Reference 10g Release 1 (10.1) B12276-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.dmt.odm.transformation.CategoryGroup
An instance of class CategoryGroup allows grouping of similar categories. A valid category group must have at least one category in it. The group identifier ( bin number) must be > 0. CategoryGroup is used to specify the categorical discretization of a categorical mining attribute to build a mining model.
Constructor Summary | |
CategoryGroup(int id, java.lang.String displayName, Category[] categories) Creates a category group with the specified group ID and list of categories. |
Method Summary | |
void |
addCategory(Category cat) Adds a category to this group. |
Category[] |
getCategories() Returns the list (array) of categories belonging to this group. |
java.lang.String |
getDisplayName() Returns the group display name. |
int |
getGroupID() Returns the group identifier. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CategoryGroup(int id, java.lang.String displayName, Category[] categories) throws InvalidArgumentException
id
- Category group IDdisplayName
- Category group (display) namecategories
- array of categories in the groupInvalidArgumentException
-
id
is negative, orMethod Detail |
public void addCategory(Category cat) throws InvalidArgumentException
cat
- Category object, cannot be null.InvalidArgumentException
- when the category is nullpublic int getGroupID()
public java.lang.String getDisplayName()
public Category[] getCategories()
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |