public class AgThreadedPsdEvaluator extends MultithreadedPsdEvaluator implements IFinishListener, IIntervalListener
Modifier and Type | Field and Description |
---|---|
private long |
timeLastRender |
FPS_GRAPHICS, workers
Constructor and Description |
---|
AgThreadedPsdEvaluator(AgKmc kmc,
int repeats,
int measureInterval,
int numThreads,
int psdSizeX,
int psdSizeY,
java.util.Set flags) |
Modifier and Type | Method and Description |
---|---|
protected double |
calculateHierarchyError(Individual ind)
Calculates the hierarchy error based on the rates of Cox et al.
|
protected double |
calculateHierarchyErrorDiscrete(Individual ind) |
protected double |
calculateHierarchyErrorFromReference(Individual i) |
private static GrowthKmcFrame |
createGraphicsFrame(AgKmc kmc) |
void |
handleSimulationFinish(int workerID,
int workID) |
void |
setHierarchy(double[] genes) |
AbstractEvaluator |
setShowGraphics(boolean showGraphics) |
calculatePsdFromIndividual, dispose, evaluate, handleSimulationIntervalFinish
calculateFrobeniusNormErrorMatrix, getCurrentDifference, getCurrentError, getCurrentIteration, getCurrentPopulation, getCurrentPsd, getCurrentSimulation, getIndividualCount, getMeasureInterval, getProgressPercent, getPsdSizeX, getPsdSizeY, getRepeats, getSimulationCount, hasKmcFailed, kmcHasFailed, resetKmcError, setCurrentPopulation, setCurrentSimulation, setExpectedSimulationTime, setPsd, setPsdSizeX, setPsdSizeY, setRepeats
getSurface, getWheight, setWheight, showGraphics
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleSimulationIntervalFinish
public AgThreadedPsdEvaluator(AgKmc kmc, int repeats, int measureInterval, int numThreads, int psdSizeX, int psdSizeY, java.util.Set flags)
private static GrowthKmcFrame createGraphicsFrame(AgKmc kmc)
public AbstractEvaluator setShowGraphics(boolean showGraphics)
setShowGraphics
in class AbstractEvaluator
public void handleSimulationFinish(int workerID, int workID)
handleSimulationFinish
in interface IFinishListener
handleSimulationFinish
in class MultithreadedPsdEvaluator
protected double calculateHierarchyError(Individual ind)
calculateHierarchyError
in class AbstractPsdEvaluator
ind
- Current individualprotected double calculateHierarchyErrorFromReference(Individual i)
calculateHierarchyErrorFromReference
in class AbstractPsdEvaluator
protected double calculateHierarchyErrorDiscrete(Individual ind)
calculateHierarchyErrorDiscrete
in class AbstractPsdEvaluator
public void setHierarchy(double[] genes)
setHierarchy
in class AbstractPsdEvaluator