Package io.github.ai4ci.config
Interface TestParameters
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ImmutableTestParameters
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
applyNoise
(double normalisedSignal, double sensitivity, double specificity, double limitOfDetection, Sampler rng) This comes from the following logic. a uniform distribution of noise is added.default double
applyNoise
(double normViralLoad, Sampler rng) The average delay in the result becoming available (days)The SD of the delay in the result.Identifier for the test type e.g.default double
default double
-
Method Details
-
getTestName
String getTestName()Identifier for the test type e.g. LFT, PCR, SYMPTOMS -
getSensitivity
Double getSensitivity() -
getSpecificity
Double getSpecificity() -
getMeanTestDelay
Double getMeanTestDelay()The average delay in the result becoming available (days) -
getSdTestDelay
Double getSdTestDelay()The SD of the delay in the result. This will be a log normal -
getLimitOfDetection
Double getLimitOfDetection() -
applyNoise
-
positiveLikelihoodRatio
default double positiveLikelihoodRatio() -
negativeLikelihoodRatio
default double negativeLikelihoodRatio() -
applyNoise
static double applyNoise(double normalisedSignal, double sensitivity, double specificity, double limitOfDetection, Sampler rng) This comes from the following logic. a uniform distribution of noise is added. If all the signal is zero this should be less than 1 in (spec) of the cases. If the signal is one then the sum should be less than 1 in (1-sens) of the time. The CDF of the uniform that does this is a straight line going through the points 0,(1-sens) and 1,(1-spec). This is connected to the rogan gladen estimator.
-