@Unstable @Component @Named(value="specificity") @Singleton public class PatientSpecificityScriptService extends Object implements org.xwiki.script.service.ScriptService
| Constructor and Description |
|---|
PatientSpecificityScriptService() |
| Modifier and Type | Method and Description |
|---|---|
double |
getScore(Patient patient)
Compute the raw specificity score for a patient.
|
double |
getScore(String[] features,
String[] negativeFeatures)
Compute the raw specificity score for a patient snapshot, literally a collection of positive and negative
features.
|
public double getScore(Patient patient)
patient - the patient to score0 and 1, or -1 if the score cannot be computed by this scorerpublic double getScore(String[] features, String[] negativeFeatures)
features - the relevant features observed in the patientnegativeFeatures - the relevant features that were NOT observed in the patient0 and 1, or -1 if the score cannot be computed by this scorerCopyright © 2011–2017 University of Toronto, Computational Biology Lab. All rights reserved.