Package weka.associations
Class AssociationRules
java.lang.Object
weka.associations.AssociationRules
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FilteredAssociationRules
Class encapsulating a list of association rules.
- Version:
- $Revision: 8034 $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
ConstructorDescriptionAssociationRules
(List<AssociationRule> rules) Constructs a new AssociationRules.AssociationRules
(List<AssociationRule> rules, Object producer) Constructs a new AssociationRules.AssociationRules
(List<AssociationRule> rules, String producer) Constructs a new AssociationRules. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the number of rules.Get a string describing the scheme that produced these rules.getRules()
Get the rules.void
setProducer
(String producer) Set a textual description of the scheme that produced these rules.void
setRules
(List<AssociationRule> rules) Set the rules to use.
-
Constructor Details
-
AssociationRules
Constructs a new AssociationRules.- Parameters:
rules
- the list of rules.producer
- a string describing the scheme that produced these rules.
-
AssociationRules
Constructs a new AssociationRules.- Parameters:
rules
- the list of rules.producer
- the scheme that produced the rules.
-
AssociationRules
Constructs a new AssociationRules.- Parameters:
rules
- the list of rules.
-
-
Method Details
-
setRules
Set the rules to use.- Parameters:
rules
- the rules to use.
-
getRules
Get the rules.- Returns:
- the rules.
-
getNumRules
public int getNumRules()Get the number of rules.- Returns:
- the number of rules.
-
setProducer
Set a textual description of the scheme that produced these rules.- Parameters:
producer
- a textual description of the scheme that produced these rules.
-
getProducer
Get a string describing the scheme that produced these rules.- Returns:
- producer
-