rhino_health.lib.metrics.epidemiology.time_range_based_metrics#

Module Contents#

Classes#

TimeRangeBasedMetric

Abstract class for metrics that are based on a time range

Prevalence

Returns the prevalence of entries for a specified VARIABLE

Incidence

Returns the incidence of entries for a specified VARIABLE

class rhino_health.lib.metrics.epidemiology.time_range_based_metrics.TimeRangeBasedMetric(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric, abc.ABC

Abstract class for metrics that are based on a time range

variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
detected_column_name: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
time_column_name: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
start_time: str#
end_time: str#
class rhino_health.lib.metrics.epidemiology.time_range_based_metrics.Prevalence(**kwargs)#

Bases: TimeRangeBasedMetric

Returns the prevalence of entries for a specified VARIABLE

class rhino_health.lib.metrics.epidemiology.time_range_based_metrics.Incidence(**kwargs)#

Bases: TimeRangeBasedMetric

Returns the incidence of entries for a specified VARIABLE