|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.antree.Graph
net.sf.myra.antree.MaxMinGraph
public class MaxMinGraph
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.myra.antree.Graph |
---|
Graph.Entry, Graph.Vertex |
Field Summary | |
---|---|
static java.lang.String |
EVAPORATION_FACTOR
The property key under which the evaporation factor is stored. |
static double |
INITIAL
The initial pheromone value (this is an arbitrary 'big' value). |
static java.lang.String |
P_BEST
The property key under which the p_best probability is stored. |
Fields inherited from class net.sf.myra.antree.Graph |
---|
cache, heuristic, mapping, matrix, template, vertices |
Constructor Summary | |
---|---|
MaxMinGraph(net.sf.myra.datamining.data.Metadata metadata,
Heuristic heuristic)
Creates a new MaxMinGraph instance. |
Method Summary | |
---|---|
void |
evaporate()
Evaporates the pheromone values of each branch by normalising the values. |
double |
getEvaporationFactor()
Returns the evaporation factor. |
double |
getTMax()
Returns the maximum pheromone value allowed. |
double |
getTMin()
Returns the minimum pheromone value allowed. |
void |
update(Tree tree)
Updates the pheromone values of the branches used in the specified tree. |
Methods inherited from class net.sf.myra.antree.Graph |
---|
getEntry, getVertices, getVertices, stats |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EVAPORATION_FACTOR
public static final java.lang.String P_BEST
public static final double INITIAL
Constructor Detail |
---|
public MaxMinGraph(net.sf.myra.datamining.data.Metadata metadata, Heuristic heuristic)
MaxMinGraph
instance.
metadata
- the current dataset's metadata.heuristic
- the heuristic information.Method Detail |
---|
public void update(Tree tree)
Graph
update
in class Graph
tree
- the tree used to update the pheromone values.public void evaporate()
Graph
evaporate
in class Graph
public double getTMax()
public double getTMin()
public double getEvaporationFactor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |