|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsir.util.Event
Title: SIREstimate Description: Estimation of SIR parameters Copyright: Copyright (c) 2002 Company:
Field Summary | |
double |
accepted
Acceptance number, to be used when updating by MCMC |
double |
censorTime
In case an event is censored save the observed time, i.e. censoring time |
boolean |
isCensored
Is the event censored. |
boolean |
isParametric
Is the event time parametric, i.e. unknown |
Event |
nextEventInSameUnit
Link to the next event occured in same unit as this event |
Event |
nextIndividualEvent
Next event for same individual, i.e. for E it is I, for I it is R. |
Unit |
origin
The unit, where the infection is originating from. |
int |
posx
x position in grid of the unit (quick-access) |
int |
posy
y position in grid of the unit (quick-access) |
Event |
prevEventInSameUnit
Link to previous event occured in same unit as this event |
double |
startT
Start value if unknown and we don't want to sample blindly we can provide a start value |
double |
t
Time of event |
char |
type
Even type: S,E,I,R,T |
Unit |
unit
Link to unit, corresponds to x,y position |
double |
X
Number of susceptibles in unit posx,posy at time t |
double |
Y
Number of infected in unit posx,posy at time t |
double |
Z
Number of exposed in unit posy,posy at time t |
Constructor Summary | |
Event()
Empty constructor if we ever need it. |
|
Event(Unit unit,
double[] t,
char type)
Basic constructor transfering values into the object. |
|
Event(Unit unit,
double[] t,
char type,
boolean isCensored)
Constructor with censoring |
Method Summary | |
java.lang.Object |
clone()
Clone an event - note array instances are new'ed so the direct mem references are not exactly as before |
Event |
cloneExposed(double c)
Make an exact copy of the event, but change the event to type 'E' and subtract a constant from time. |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Comparing based on event time. |
java.lang.String |
toString()
For debug purposes |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Field Detail |
public Unit unit
public int posx
public int posy
public double t
public char type
public boolean isParametric
public double startT
public double accepted
public boolean isCensored
public double censorTime
public double X
public double Y
public double Z
public Event prevEventInSameUnit
public Event nextEventInSameUnit
public Event nextIndividualEvent
public Unit origin
Constructor Detail |
public Event(Unit unit, double[] t, char type)
unit
- Unit the event occured int
- Time of event occurence (two dim array: place 0= startval 1=value)type
- What was the event typepublic Event(Unit unit, double[] t, char type, boolean isCensored)
unit
- Unit the event occured int
- Time of event occurence (two dim array: place 0= startval 1=value)type
- What was the event typeisCensored
- Censoring status, if true then t is the censoring timepublic Event()
Method Detail |
public Event cloneExposed(double c)
c
- The fixed length of the incubation time
public java.lang.Object clone()
public java.lang.String toString()
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- First object (should be of type Event)o2
- Second object (also of type Event)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |