fern.benchmark
Class SimulatorRandomNumbers

java.lang.Object
  extended by fern.benchmark.Benchmark
      extended by fern.benchmark.SimulatorPerformance
          extended by fern.benchmark.SimulatorTime
              extended by 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.SimulatorPerformance
benchmark, getShowSteps, getSimulators, setShowSteps
 
Methods inherited from class fern.benchmark.Benchmark
addData, clearData, createRandomDoubleArray, end, getNumBins, setNumBins, start, toGnuplot, toGnuplot, toGnuPlotAsHistogram, toGnuPlotAsHistogram
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 benchmark
time - running time for the simulators
Method Detail

present

public void present()
Present results of this benchmark is gnuplot and text to stdout.

Overrides:
present in class SimulatorTime