Modifier and Type | Field and Description |
---|---|
private Map<SimulationEvent,Double> |
kernel |
Constructor and Description |
---|
TransitionKernel()
Create a transition kernel object to hold the transition probabilities between vents.
|
Modifier and Type | Method and Description |
---|---|
void |
addToKernel(SimulationEvent event,
Double rate)
Add the transition rate for a given event.
|
void |
clear()
Clear all the events from the kernel.
|
Object |
clone()
Copy this kernel object.
|
Map<SimulationEvent,Double> |
getCDF()
Get the cumulativeDistFn for this transition kernel.
|
Set<SimulationEvent> |
getTransitionEvents()
Get the collection of events stored in the transition kernel.
|
Double |
getTransitionProbability(SimulationEvent event)
Get the probability of an event occurring.
|
void |
setTransitionProbabilities(Map<SimulationEvent,Double> probabilities)
Set the transition probabilities between states.
|
private Map<SimulationEvent,Double> kernel
public TransitionKernel()
public final Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if cloneable is not implemented.public final void addToKernel(SimulationEvent event, Double rate)
event
- the event to be added to the kernelrate
- the rate at which this event occurs.public final void clear()
public final Set<SimulationEvent> getTransitionEvents()
public final Double getTransitionProbability(SimulationEvent event)
event
- the eventpublic final void setTransitionProbabilities(Map<SimulationEvent,Double> probabilities)
probabilities
- the new set of probabilities.public final Map<SimulationEvent,Double> getCDF()
Copyright © 2015 University of Glasgow. All rights reserved.