|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsir.util.Data
Title: LadyBug 2.0 Description: This is Object handles the data reading (i.e. the .data) files. It contains all the data which are then moved to an instance of the EpiState class. Copyright: Copyright (c) 2003 Company:
Field Summary | |
Event[] |
D
Diagnostic Events |
Event[] |
E
Exposure times |
Event |
E1
Exposure of first exposed |
Unit |
firstInfectedUnit
Pointer to the unit, where the first infection occurs (i.e. a=1) |
Event[] |
I
Infectious times |
double |
incu
Length of incubatoin period |
int |
inoculatedIndex
Index of the inoculated individuals |
double[] |
lambda
|
int |
noOfBeta
|
int |
noOfBetaN
|
int |
noOfIndividuals
Number of affected individuals, i.e. number of individuals mentioned in the data file |
int |
noOfUnits
Various sorts of counters |
int |
noOfUnitsX
Various sorts of counters |
int |
noOfUnitsY
Various sorts of counters |
double[] |
nu
|
Unit |
nullUnit
NullUnit, special void unit to use in case of switch and terminating events |
Event[] |
R
Recovery times |
double[] |
startVal
|
Event |
T
End of observation |
double |
Ttime
Time, where experiment has ceased. |
Unit[][] |
units
|
Constructor Summary | |
Data()
|
Method Summary | |
void |
extractLocalTau()
Extract local recovery times for each unit and deduce the number of individuals escaping infection in all units. |
int |
getNoOfCensoredD()
Get the number of unknown diagnosed times by counting number of NA's in the data |
int |
getNoOfUnknownD()
Get the number of unknown diagnosed times by counting number of NA's in the data |
int |
getNoOfUnknownE()
Get the number of unknown exposure times by counting number of NA's in the data |
int |
getNoOfUnknownI()
Get the number of unknown infection times by counting number of NA's in the data |
int |
getNoOfUnknownR()
Get the number of unknown recovery times by counting number of NA's in the data |
int[] |
getUnknownDIndexes()
Find index of all unknown diagnoed time |
int[] |
getUnknownEIndexes()
Find index of all unknown exposure time |
int[] |
getUnknownIIndexes()
Find index of all unknown infection time |
int[] |
getUnknownRIndexes()
Find index of all unknown recovery times |
int |
index2GridX(int index)
Function to convert index to a X position in the grid . |
int |
index2GridY(int index)
Function to convert a index to a Y grid position Labelling is (1,1)=1, (2,1)=2 |
boolean |
isOk()
Function to check that the data found in the data file is ok. |
double |
lastRecDiagTime()
Look in the data and find the last specified rec or diag time |
void |
postProcess()
Postprocess data, i.e. make data parametric if requested, setup units, check consistency, etc. |
boolean |
setupUnitArrays(java.util.Vector unitsVector)
Check, that all cells in the grid layout obtained from the units are specified Convert units vector to a 2D array, and setup up unit related parameters |
java.lang.String |
toString()
Usual debug method to display all on screen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double[] nu
public double[] lambda
public double[] startVal
public Event[] E
public Event[] I
public Event[] R
public Event[] D
public Event T
public Unit[][] units
public Unit nullUnit
public Unit firstInfectedUnit
public int inoculatedIndex
public int noOfUnits
public int noOfUnitsX
public int noOfUnitsY
public int noOfIndividuals
public int noOfBetaN
public int noOfBeta
public double incu
public double Ttime
public Event E1
Constructor Detail |
public Data()
Method Detail |
public boolean isOk()
public boolean setupUnitArrays(java.util.Vector unitsVector)
unitsVector
- All units just stuffed into a Vectorpublic void extractLocalTau()
public int[] getUnknownEIndexes()
public int[] getUnknownDIndexes()
public int[] getUnknownIIndexes()
public int[] getUnknownRIndexes()
public int getNoOfUnknownE()
public int getNoOfUnknownI()
public int getNoOfUnknownR()
public int getNoOfCensoredD()
public int getNoOfUnknownD()
public double lastRecDiagTime()
public void postProcess()
public java.lang.String toString()
public int index2GridX(int index)
index
- The index in the grid
public int index2GridY(int index)
index
- The index in the rid
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |