public class SimulatorCorrectness extends SimulatorPerformance
benchmark
method can be
invoked repeatedly to calculate the average over many simulations.
For references, see Yang Cao, Linda Petzold, Accuracy limitations and the measurement of errors in the stochastic simulation of chemically reacting systems, Journal of Computational Physics 212 (2006) 6�24.
Constructor and Description |
---|
SimulatorCorrectness(Network net,
double moment,
String... speciesNames)
Creates the benchmark instance with given network, moment in time and species.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
present()
Gets called after some iterations of the method
benchmark in the base class. |
benchmark, getShowSteps, getSimulators, setShowSteps
addData, clearData, createRandomDoubleArray, end, getNumBins, setNumBins, start, toGnuplot, toGnuplot, toGnuPlotAsHistogram, toGnuPlotAsHistogram
public SimulatorCorrectness(Network net, double moment, String... speciesNames)
net
- the network to benchmarkmoment
- the moment in time at which the amounts are to be measuredspeciesNames
- the names of the species of which the amounts are to be measuredpublic void present()
benchmark
in the base class. A
gnuplot is created containing histograms for each species and simulator and the histogram
distances for the simulators is printed to stdoutSimulatorPerformance.setShowSteps(int)
public static void main(String[] args) throws IOException, org.jdom.JDOMException
IOException
org.jdom.JDOMException
Copyright © 2007–2021. All rights reserved.