dx#

class dx(df, hierarchy=None)[source]#

Bases: Product

Testing products are used within screening and triage. Their fundamental property is that they classify people into exactly one result state. They do not change anything about the People.

Attributes

default_value

Methods

administer(sim, inds, return_format='dict')[source]#

Administer a testing product.

Returns:

an array of length len(inds) with integer entries that map each person to one of the result_states if return_format==’dict’: a dictionary keyed by result_states with values containing the indices of people classified into this state

Return type:

if return_format==’array’