oracle.dmt.odm.rule
Class RuleComponent
java.lang.Object
|
+--oracle.dmt.odm.rule.RuleComponent
- Direct Known Subclasses:
- PredicateRuleComponent
- public class RuleComponent
- extends java.lang.Object
An instance of RuleComponent
can be used as an antecedent or consequent
of a MiningRule
instance.
A RuleComponent
contains an itemset (a set of ItemValue
s)
and the support of the itemset.
- See Also:
MiningRule
, ItemValue
RuleComponent(float support,
ItemValue[] itemset)
Creates an instance of RuleComponent with a support value and
an itemset. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleComponent
public RuleComponent(float support,
ItemValue[] itemset)
throws MiningObjectException
- Creates an instance of
RuleComponent
with a support value and
an itemset.
- Parameters:
support
- The support value of the itemsetitemset
- The itemset- Throws:
MiningObjectException
- thrown when the support value is out of range.
addItemSet
public void addItemSet(ItemValue item)
- Adds an instance of
ItemValue
to the itemset.
- Parameters:
item
- An item to be added to the itemset.- Returns:
- void
getSupport
public float getSupport()
- Returns the support of the itemset.
- Returns:
- float The support of the itemset
getItemSet
public ItemValue[] getItemSet()
- Returns the itemset as an array of
ItemValue
s.
- Returns:
- ItemValue[] The itemset