public class GENARProcess
extends java.lang.Object
It provides the implementation of the GENAR algorithm to be run in a process
Constructor and Description |
---|
GENARProcess(myDataset ds,
int nRules,
int nTrials,
int popsize,
double ps,
double pm,
double pf,
double AF)
It creates a new process for the algorithm by setting up its parameters
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<AssociationRule> |
getSetRules(double minSupport)
Returns the rules that have their support values higher than the minimum 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 minSupport,
java.io.PrintWriter w)
It prints out on the given
PrintWriter object relevant information regarding the mined association rules. |
public GENARProcess(myDataset ds, int nRules, int nTrials, int popsize, double ps, double pm, double pf, double AF)
It creates a new process for the algorithm by setting up its parameters
ds
- The instance of the dataset for dealing with its recordsnRules
- The maximum number of rules to be generated.nTrials
- The maximum number of evaluations to accomplish before terminating the genetic learningpopsize
- The maximum size of population to handle after each generationps
- The probability of the selection operatorpm
- The probability of the mutation operatorpf
- The probability of the crossover operatorAF
- The parameter which is used while executing the crossover operatorpublic 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 static double roundDouble(double number, int decimalPlace)
BigDecimal
rounding mode given.number
- number to be rounded.decimalPlace
- given rounding mode.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 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 higher than the minimum given.
minSupport
- minimum support value given.w
- given PrintWriter object to write on.public java.util.ArrayList<AssociationRule> getSetRules(double minSupport)
minSupport
- minimum support value given.