Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

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 ItemValues) and the support of the itemset.

See Also:
MiningRule, ItemValue

Constructor Summary
RuleComponent(float support, ItemValue[] itemset)
          Creates an instance of RuleComponent with a support value and an itemset.

 

Method Summary
 void addItemSet(ItemValue item)
          Adds an instance of ItemValue to the itemset.
 ItemValue[] getItemSet()
          Returns the itemset as an array of ItemValues.
 float getSupport()
          Returns the support of the itemset.
 int getSupportCount()
          Returns the support count of the frequent itemset.
 void setSupportCount(int count)
          Sets the support count of the frequent itemset.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

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 itemset
itemset - The itemset
Throws:
MiningObjectException - thrown when the support value is out of range.
Method Detail

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

getSupportCount

public int getSupportCount()
Returns the support count of the frequent itemset.
Returns:
int - The support count of the itemset (number of cases that supports the itemset)
Since:
9.2.0.5

setSupportCount

public void setSupportCount(int count)
Sets the support count of the frequent itemset. Internal use only.

getItemSet

public ItemValue[] getItemSet()
Returns the itemset as an array of ItemValues.
Returns:
ItemValue[] The itemset

Copyright © 2003 Oracle Corporation. All Rights Reserved.