Description Usage Arguments Details Value See Also Examples
Computation of the quality values for a surveillance System output.
1 | algo.quality(survResObj, penalty = 20)
|
survResObj |
object of class survRes, which includes the state chain and the computed alarm chain |
penalty |
the maximal penalty for the lag |
The lag is defined as follows:
In the state chain just the beginnings of an outbreak chain (outbreaks directly
following each other) are considered. In the alarm chain, the range from the beginning
of an outbreak until min(next outbreak beginning,\code{penalty}) timepoints is considered. The penalty
timepoints were
chosen, to provide an upper bound on the penalty for not discovering an outbreak. Now the difference between the first alarm by the system and the defined beginning is denoted “the lag” Additionally outbreaks found by the system are not
punished. At the end, the mean of the lags for every outbreak chain is returned
as summary lag.
list of quality values |
|
1 2 3 4 5 6 7 8 9 10 | # Create a test object
disProgObj <- sim.pointSource(p = 0.99, r = 0.5, length = 200, A = 1,
alpha = 1, beta = 0, phi = 0,
frequency = 1, state = NULL, K = 1.7)
# Let this object be tested from rki1
survResObj <- algo.rki1(disProgObj, control = list(range = 50:200))
# Compute the quality values
algo.quality(survResObj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.