Class TimeDistance
java.lang.Object
care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
care.smith.top.top_phenotypic_query.c2reasoner.functions.date_time.TimeDistance
public class TimeDistance
extends care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
The function TimeDistance returns 'true' if the value list (1st argument) contains at
least n values (2nd argument) in such a way that the time intervals (in hours) between them lie
within a defined range (3rd-6th arguments), otherwise 'false'.
Arguments | Arguments data types | Return data type | Example |
---|---|---|---|
<exp> [<values-num>] (<comparison-operator> <limit>)+ |
<exp>: any <values-num>: number (default value: 2) <comparison-operator>: constant (>, ≥, <, ≤) <limit>: number |
boolean |
TimeDistance(Blood_Glucose, 3, >, 6, ≤, 72) The function returns 'true' if among all blood glucose values occur at least three in such a way that the time intervals between them lie in the range from 6 to 72 hours. |
- Author:
- TOP group
-
Method Summary
Modifier and TypeMethodDescriptioncare.smith.top.model.Expression
calculate
(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) static TimeDistance
get()
static care.smith.top.model.Expression
of
(care.smith.top.model.Expression... args) static care.smith.top.model.Expression
Methods inherited from class care.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
getFunction, getFunctionId, getType, maxArgumentNumber, minArgumentNumber, toString, toStringValues
-
Method Details
-
get
-
of
-
of
public static care.smith.top.model.Expression of(care.smith.top.model.Expression... args) -
calculate
public care.smith.top.model.Expression calculate(List<care.smith.top.model.Expression> args, care.smith.top.top_phenotypic_query.c2reasoner.C2R c2r) - Specified by:
calculate
in classcare.smith.top.top_phenotypic_query.c2reasoner.functions.FunctionEntity
-