public class TauLeaping extends AbstractTauLeapingBase
GENERATOR
reverseTime
Constructor and Description |
---|
TauLeaping(AmountManager amountManager,
TransitionKernel transitionKernel)
Create the tau-leaping object.
|
Modifier and Type | Method and Description |
---|---|
private double |
calculateRTotal()
Calculate the h's described in (14) page 413 and the sum a (26) page 418.
|
String |
getName()
Gets the name of the algorithm.
|
void |
performStep()
Performs one simulation step.
|
void |
reinitialize()
Reset propensities when a event has been executed.
|
void |
setRngSeed(int seed)
Seed the RNG if required.
|
isThetaEventInCurrentStep, updateStates
addObserver, doEvent, doEvent, doThetaEvent, getDefaultObserver, getNextThetaEventTime, init, registerNewTheta, run, run
public TauLeaping(AmountManager amountManager, TransitionKernel transitionKernel)
amountManager
- the amount manager used in the simulator.transitionKernel
- the transition kernel to be used with the stochastic solver.public final String getName()
StochasticSimulator
getName
in class StochasticSimulator
public final void setRngSeed(int seed)
StochasticSimulator
setRngSeed
in class StochasticSimulator
seed
- the RNG seed.public final void reinitialize()
StochasticSimulator
reinitialize
in class StochasticSimulator
public final void performStep()
StochasticSimulator
Simulator#setAmount(int, long)
and Simulator#setVolume(double)
if they need correct values!performStep
in class StochasticSimulator
private double calculateRTotal()
Copyright © 2015 University of Glasgow. All rights reserved.