public class GARProcess
extends java.lang.Object
It provides the implementation of the GAR algorithm to be run in a process
Constructor and Description |
---|
GARProcess(myDataset ds,
int nItemset,
int nTrials,
int popsize,
double ps,
double pc,
double pm,
double w,
double y,
double u,
double AF) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<AssociationRule> |
getSetRules(double minConfidence,
double minSupport)
Returns the rules that have their confidence and support values higher than the minimum ones given.
|
void |
printReport(double minConfidence,
double minSupport)
It prints out on screen relevant information regarding the mined association rules
which have their confidence and support values higher than the minimum ones given.
|
java.lang.String |
printRules(java.util.ArrayList<AssociationRule> rules)
Returns a String with relevant information regarding the mined association rules
|
static double |
roundDouble(double number,
int decimalPlace)
Rounds the number applying the
BigDecimal rounding mode given. |
void |
run()
It runs the algorithm for mining association rules.
|
void |
saveReport(double minConfidence,
double minSupport,
java.io.PrintWriter w)
It prints out on the given
PrintWriter object relevant information regarding the mined association rules. |
public GARProcess(myDataset ds, int nItemset, int nTrials, int popsize, double ps, double pc, double pm, double w, double y, double u, double AF)
public void run()
public void printReport(double minConfidence, double minSupport)
It prints out on screen relevant information regarding the mined association rules which have their confidence and support values higher than the minimum ones given.
minConfidence
- given minimum confidence value.minSupport
- given minimum support value.public java.lang.String printRules(java.util.ArrayList<AssociationRule> rules)
Returns a String with relevant information regarding the mined association rules
rules
- The array of association rules from which gathering relevant informationpublic void saveReport(double minConfidence, double minSupport, java.io.PrintWriter w)
It prints out on the given PrintWriter
object relevant information regarding the mined association rules.
These rules must have their confidence and support values higher than the minimum ones given.
minConfidence
- minimum confidence value given.minSupport
- minimum support value given.w
- given PrintWriter object to write on.public static double roundDouble(double number, int decimalPlace)
BigDecimal
rounding mode given.number
- number to be rounded.decimalPlace
- given rounding mode.public java.util.ArrayList<AssociationRule> getSetRules(double minConfidence, double minSupport)
minConfidence
- minimum confidence value given.minSupport
- minimum support value given.