|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsir.sim.Score
New sampler to handle Sellke constructions. Currently, only the single homogenous setup is handled. Intention is to go to a spatial setup at some point. Added seroconversion. Added so vaccine effects etc. can calculate predictive posterior distributions. Now calculates DIC5.
Field Summary | |
static int |
beta_
|
static int |
betaN_
|
static Data |
data
Data object storing the information read form the .data file |
static int |
deltaD_
|
static int |
deltaE_
|
static int |
deltaI_
|
protected static java.text.DecimalFormat |
form
For formatting of doubles to an output stream. |
static int |
gammaD_
|
static int |
gammaE_
|
static int |
gammaI_
|
static Distributions |
prob
Distribution object allowing us to sample from various densities etc. |
Constructor Summary | |
Score()
|
Method Summary | |
void |
DIC4(java.lang.String logFileName,
java.io.PrintStream out,
int burnin,
int filter,
int sampleSize)
Compute Deviance Information criterion for the model. |
void |
DIC5(java.lang.String logFileName,
java.io.PrintStream out)
Compute Deviance Information criterion for the model. |
static void |
main(java.lang.String[] argv)
A sir sampler for command line calling. |
static Distributions |
newSampler()
Method to initialize the sampler. |
static Data |
readDataFile(java.lang.String fileName)
Read the specification from the data file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int beta_
public static int betaN_
public static int gammaE_
public static int deltaE_
public static int gammaI_
public static int deltaI_
public static int gammaD_
public static int deltaD_
public static Data data
public static Distributions prob
protected static java.text.DecimalFormat form
Constructor Detail |
public Score()
Method Detail |
public static Data readDataFile(java.lang.String fileName)
fileName
- Name of the .data file...public static Distributions newSampler()
public void DIC5(java.lang.String logFileName, java.io.PrintStream out)
logFileName
- Name of the logfile containing the posterior sample of theta and Zpublic void DIC4(java.lang.String logFileName, java.io.PrintStream out, int burnin, int filter, int sampleSize)
logFileName
- Name of the logfile containing the posterior sample of theta and Zout
- Stream where results are sent.public static void main(java.lang.String[] argv)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |