add specific class for buonanno comparison
This commit is contained in:
parent
e850746c3b
commit
db37b58403
1 changed files with 21 additions and 0 deletions
|
|
@ -233,6 +233,27 @@ class MCConcentrationModel:
|
|||
return concentration_limit * (1 - fac) + concentration_at_last_state_change * fac
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BuonannoSpecificInfectedPopulation:
|
||||
#: The virus with which the population is infected.
|
||||
virus: MCVirus
|
||||
|
||||
# The total number of samples to be generated
|
||||
samples: int
|
||||
|
||||
presence: models.Interval = models.SpecificInterval(((0, 2), ))
|
||||
|
||||
constant_qr: float = 1000
|
||||
|
||||
@functools.lru_cache()
|
||||
def emission_rate(self, time) -> float:
|
||||
"""
|
||||
The emission rate of the entire population.
|
||||
|
||||
"""
|
||||
return self.constant_qr
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class MCExposureModel:
|
||||
#: The virus concentration model which this exposure model should consider.
|
||||
|
|
|
|||
Loading…
Reference in a new issue