fern.benchmark
Class SimulatorRandomNumbers
java.lang.Object
fern.benchmark.Benchmark
fern.benchmark.SimulatorPerformance
fern.benchmark.SimulatorTime
fern.benchmark.SimulatorRandomNumbers
public class SimulatorRandomNumbers
- extends SimulatorTime
Check the number of random number creations of different distributions for a given net.
The random number creations are essential for the performance of the simulation algorithms.
The benchmark
method can be invoked
repeatedly to calculate the average over many simulations.
- Author:
- Florian Erhard
Constructor Summary |
SimulatorRandomNumbers(Network net,
double time)
Create the benchmark and defines the time each simulator has to run in one iteration. |
Method Summary |
void |
present()
Present results of this benchmark is gnuplot and text to stdout. |
Methods inherited from class fern.benchmark.Benchmark |
addData, clearData, createRandomDoubleArray, end, getNumBins, setNumBins, start, toGnuplot, toGnuplot, toGnuPlotAsHistogram, toGnuPlotAsHistogram |
SimulatorRandomNumbers
public SimulatorRandomNumbers(Network net,
double time)
- Create the benchmark and defines the time each simulator has to run in one iteration.
- Parameters:
net
- the network to benchmarktime
- running time for the simulators
present
public void present()
- Present results of this benchmark is gnuplot and text to stdout.
- Overrides:
present
in class SimulatorTime