
public class TauLeaping extends AbstractTauLeapingBase
GENERATORreverseTime| 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, updateStatesaddObserver, doEvent, doEvent, doThetaEvent, getDefaultObserver, getNextThetaEventTime, init, registerNewTheta, run, runpublic 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()
StochasticSimulatorgetName in class StochasticSimulatorpublic final void setRngSeed(int seed)
StochasticSimulatorsetRngSeed in class StochasticSimulatorseed - the RNG seed.public final void reinitialize()
StochasticSimulatorreinitialize in class StochasticSimulatorpublic final void performStep()
StochasticSimulatorSimulator#setAmount(int, long) and Simulator#setVolume(double) if they need correct values!performStep in class StochasticSimulatorprivate double calculateRTotal()
Copyright © 2015 University of Glasgow. All rights reserved.