public class RulesFilter
extends java.lang.Object
Constructor | Description |
---|---|
RulesFilter() |
Modifier and Type | Method | Description |
---|---|---|
static java.util.ArrayList<Rule> |
supportFilter(java.util.ArrayList<Rule> rules,
int[] minSupports) |
Searches through given list of decision rules and chooses those only rules which have sufficient support.
|
public static java.util.ArrayList<Rule> supportFilter(java.util.ArrayList<Rule> rules, int[] minSupports)
rules
- list of rules to search throughminSupports
- array with minimal support values for subsequent sub-lists of decision rules.
Each sub-list contains rules with the same decision part (i.e. induced for the same union of decision classes
or for the same decision class). The number of support values must be not smaller than
the number of sub-lists of decision rules.java.lang.NullPointerException
- when list of rules or list of minimal support values is null
,
when array with minimal support values is empty while the list of rules is not empty,
when some rule has empty decision part,
when array with minimal support values is too short
or when for some rule value of the support statistic is unknown