user controllable percentages for hospitalization, ICU, and deaths + complete export + fade-in/-out of mitigation #594
Labels
help wanted
Extra attention is needed
s:data
Scope: related to data retrieval, parsing, transformation, storage, update
s:ui
Scope: related to user experience, user interface, usability, accessibility
t:feat
Type: request of a new feature, functionality, enchancement
🙋 Feature Request
I have a couple of requests so will list them as bullet points:
🔦 Context
In general these features will make it easier to fit the model to data. I also think that they will add some more realism to the simulation. As for the export issue, this is merely for the benefit and convenience of the user but should also help to make your model more popular ;-).
😯 Describe the feature
Feature 1 can be achieved by simply adding 3 input boxes that allow the user to specify the percentages of cases that go to (i) the hospital, (ii) ICU, (iii) the morgue.
Feature 2 can be achieved by bundling all the data that is displayed in the figure in the same csv or json file.
Feature 3 can be accomplished by having the mitigation periods fade in and allow the user to specify the number of days until the full percentage is reached.
💻 Examples
see above
💁 Possible Solution
Features 1&2 should be obvious. For Feature 3, you could perhaps use a function of the form: p(t)=P0-P0/t^2 to ramp up the percentage p over time t, where P0 is the final effectiveness of the mitigation. By varying the exponent of t in the denominator you can control the speed of how quickly P0 is achieved. So a function like this would be for "quick learners", i.e., societies that trust their government and quickly adhere to new rules (such as Scandinavians) as it has a steep initial rise and then flattens at the end. For societies that distrust the government and are rather sluggish to grasp new rules (like where I live in Spain), you could use a cosine (slow start, faster in the middle, slow in the end):
p(t)=P0/2*(1-cos(pi*t/T)) for t € [0 T] where T is the (user controllable) number of days it should take to reach P0.
Related
The text was updated successfully, but these errors were encountered: