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

B12276-01

oracle.dmt.odm.rule
Class MiningRule

java.lang.Object
  |
  +--oracle.dmt.odm.MiningObject
        |
        +--oracle.dmt.odm.rule.MiningRule
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ABNMiningRule

public class MiningRule
extends MiningObject

An instance of MiningRule represents a rule as produced from the Association Rules model, the Adaptive Bayes Network model, or the Clustering model.

See Also:
AssociationRulesModel, AdaptiveBayesNetworkModel, ClusteringModel, RuleComponent, Serialized Form

Method Summary
 RuleComponent getAntecedent()
          Returns the antecendent of the mining rule.
 RuleComponent getConsequent()
          Returns the consequent of the mining rule.
 RuleAnnotation[] getRuleAnnotations()
          Returns an array of the rule annotations in the mining rule.
 int getRuleId()
          Returns the identifier of the mining rule.
 float getSupport()
          Returns the support value of the mining rule.
 int getSupportCount()
          Returns the support count of the mining rule.
 void setSupportCount(int count)
          Sets the support count of the mining rule.
 java.lang.String toString()
          Returns a formatted string representation of the mining rule for the convenience of display.

 

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

 

Method Detail

getRuleId

public int getRuleId()
Returns the identifier of the mining rule.
Returns:
int - The identifier of the mining rule

getRuleAnnotations

public RuleAnnotation[] getRuleAnnotations()
Returns an array of the rule annotations in the mining rule.
Returns:
RuleAnnotation[] The rule annotations in the mining rule.

getAntecedent

public RuleComponent getAntecedent()
Returns the antecendent of the mining rule.
Returns:
RuleComponent - The antecedent of the mining rule.

getConsequent

public RuleComponent getConsequent()
Returns the consequent of the mining rule.
Returns:
RuleComponent - The consequent of the mining rule

getSupport

public float getSupport()
Returns the support value of the mining rule.
Returns:
float - The support value of the rule

getSupportCount

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

setSupportCount

public void setSupportCount(int count)
Sets the support count of the mining rule. Internal use only.

toString

public java.lang.String toString()
Returns a formatted string representation of the mining rule for the convenience of display.
Overrides:
toString in class java.lang.Object
Returns:
String - A formatted string of the mining rule

Copyright © 2003 Oracle Corporation. All Rights Reserved.