public abstract class SimulatorPerformance extends Benchmark
present
and getController
and add some Observer
s to the
simulators
.Constructor and Description |
---|
SimulatorPerformance(Network net)
Registers the six built-in simulators for the performance benchmarks.
|
Modifier and Type | Method and Description |
---|---|
void |
benchmark()
Performs one benchmark for each of the six simulators.
|
int |
getShowSteps()
Gets the number of iterations between two
present -calls. |
Simulator[] |
getSimulators()
Gets the simulators used by this benchmark.
|
void |
setShowSteps(int showSteps)
Sets the number of iterations between two
present -calls. |
addData, clearData, createRandomDoubleArray, end, getNumBins, setNumBins, start, toGnuplot, toGnuplot, toGnuPlotAsHistogram, toGnuPlotAsHistogram
public SimulatorPerformance(Network net)
net
- the network to benchmarkGillespieSimple
,
GillespieEnhanced
,
GibsonBruckSimulator
,
TauLeapingAbsoluteBoundSimulator
,
TauLeapingRelativeBoundSimulator
,
TauLeapingSpeciesPopulationBoundSimulator
public void benchmark()
Benchmark
's data pool.
After each getShowSteps()
iterations, present
is
called.Benchmark.addData(double[])
public int getShowSteps()
present
-calls.public void setShowSteps(int showSteps)
present
-calls.showSteps
- the showSteps to setpublic Simulator[] getSimulators()
Copyright © 2007–2021. All rights reserved.