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, handleSimulationIntervalFinishcalculateFrobeniusNormErrorMatrix, getCurrentDifference, getCurrentError, getCurrentIteration, getCurrentPopulation, getCurrentPsd, getCurrentSimulation, getIndividualCount, getMeasureInterval, getProgressPercent, getPsdSizeX, getPsdSizeY, getRepeats, getSimulationCount, hasKmcFailed, kmcHasFailed, resetKmcError, setCurrentPopulation, setCurrentSimulation, setExpectedSimulationTime, setPsd, setPsdSizeX, setPsdSizeY, setRepeatsgetSurface, getWheight, setWheight, showGraphicsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleSimulationIntervalFinishpublic 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 AbstractEvaluatorpublic void handleSimulationFinish(int workerID,
int workID)
handleSimulationFinish in interface IFinishListenerhandleSimulationFinish in class MultithreadedPsdEvaluatorprotected double calculateHierarchyError(Individual ind)
calculateHierarchyError in class AbstractPsdEvaluatorind - Current individualprotected double calculateHierarchyErrorFromReference(Individual i)
calculateHierarchyErrorFromReference in class AbstractPsdEvaluatorprotected double calculateHierarchyErrorDiscrete(Individual ind)
calculateHierarchyErrorDiscrete in class AbstractPsdEvaluatorpublic void setHierarchy(double[] genes)
setHierarchy in class AbstractPsdEvaluator