public class ruleOrderAgent
extends java.lang.Object
Constructor and Description |
---|
ruleOrderAgent(int pDefaultClass,
int pNumInstances,
int capacity) |
Modifier and Type | Method and Description |
---|---|
double |
accuracyOfPosition(int pos,
matchProfileAgent mpa) |
void |
addPositiveExamples(int rule,
int[] instances,
int numInst,
matchProfileAgent mpa) |
void |
addRule(int whichRule,
matchProfileAgent mpa,
int whichPos) |
void |
copyOrder(java.util.Vector<java.lang.Integer> finalRules) |
matchProfileAgent |
generateActualMPA(int rule) |
double |
getAccuracy() |
int |
getNumRules() |
int |
getPossibleInstancesOfRule(int rule,
int[] instances) |
int |
getRule(int rule) |
int |
insertRule(int whichRule,
matchProfileAgent mpa) |
double |
min(double a,
double b) |
void |
refineRuleSet() |
void |
removeMatchesOfRule(int rule,
matchProfileAgent mpa) |
void |
removeRule(int rule) |
int |
ruleNeedsInstances(int rule) |
void |
updateMPA(int whichPos,
matchProfileAgent mpa) |
public ruleOrderAgent(int pDefaultClass, int pNumInstances, int capacity)
public int insertRule(int whichRule, matchProfileAgent mpa)
public void addRule(int whichRule, matchProfileAgent mpa, int whichPos)
public void updateMPA(int whichPos, matchProfileAgent mpa)
public double accuracyOfPosition(int pos, matchProfileAgent mpa)
public int ruleNeedsInstances(int rule)
public void refineRuleSet()
public void copyOrder(java.util.Vector<java.lang.Integer> finalRules)
public matchProfileAgent generateActualMPA(int rule)
public void removeMatchesOfRule(int rule, matchProfileAgent mpa)
public void removeRule(int rule)
public int getPossibleInstancesOfRule(int rule, int[] instances)
public void addPositiveExamples(int rule, int[] instances, int numInst, matchProfileAgent mpa)
public double min(double a, double b)
public double getAccuracy()
public int getNumRules()
public int getRule(int rule)