Package weka.associations
Class FilteredAssociationRules
java.lang.Object
weka.associations.AssociationRules
weka.associations.FilteredAssociationRules
- All Implemented Interfaces:
Serializable
Class encapsulating a list of association rules and the preprocessing filter
that was applied before they were generated.
- Version:
- $Revision: 8034 $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFilteredAssociationRules(Object producer, Filter filter, AssociationRules rules) Constructs a new FilteredAssociationRules.FilteredAssociationRules(String producer, Filter filter, AssociationRules rules) Constructs a new FilteredAssociationRules.FilteredAssociationRules(Filter filter, AssociationRules rules) Constructs a new FilteredAssociationRules. -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of rules.getRules()Get the rules.Get the wrappedAssociationRulesobject.voidsetRules(List<AssociationRule> rules) Set the rules to use.voidsetWrappedRules(AssociationRules rules) Set the wrappedAssociationRulesobject to use.Methods inherited from class weka.associations.AssociationRules
getProducer, setProducer
-
Constructor Details
-
FilteredAssociationRules
Constructs a new FilteredAssociationRules.- Parameters:
producer- a string describing the scheme that produced these rules.filter- the filter applied to preprocess the data used to learn the rules.rules- the wrapped AssociationRules object.
-
FilteredAssociationRules
Constructs a new FilteredAssociationRules.- Parameters:
producer- the scheme that produced the rulesfilter- the filter applied to preprocess the data used to learn the rules.rules- the wrapped AssociationRules object.
-
FilteredAssociationRules
Constructs a new FilteredAssociationRules.- Parameters:
filter- the filter applied to preprocess the data used to learn the rules.rules- the wrapped AssociationRules object.
-
-
Method Details
-
setRules
Set the rules to use. Passes them to the wrapped AssociationRules object.- Overrides:
setRulesin classAssociationRules- Parameters:
rules- the rules to use.
-
getRules
Get the rules.- Overrides:
getRulesin classAssociationRules- Returns:
- the rules.
-
getNumRules
public int getNumRules()Get the number of rules.- Overrides:
getNumRulesin classAssociationRules- Returns:
- the number of rules.
-
setWrappedRules
Set the wrappedAssociationRulesobject to use.- Parameters:
rules- theAssociationRulesobject to wrap.
-
getWrappedRules
Get the wrappedAssociationRulesobject.- Returns:
- the wrapped
AssociationRulesobject.
-