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
ConstructorDescriptionFilteredAssociationRules
(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 TypeMethodDescriptionint
Get the number of rules.getRules()
Get the rules.Get the wrappedAssociationRules
object.void
setRules
(List<AssociationRule> rules) Set the rules to use.void
setWrappedRules
(AssociationRules rules) Set the wrappedAssociationRules
object 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:
setRules
in classAssociationRules
- Parameters:
rules
- the rules to use.
-
getRules
Get the rules.- Overrides:
getRules
in classAssociationRules
- Returns:
- the rules.
-
getNumRules
public int getNumRules()Get the number of rules.- Overrides:
getNumRules
in classAssociationRules
- Returns:
- the number of rules.
-
setWrappedRules
Set the wrappedAssociationRules
object to use.- Parameters:
rules
- theAssociationRules
object to wrap.
-
getWrappedRules
Get the wrappedAssociationRules
object.- Returns:
- the wrapped
AssociationRules
object.
-