File size: 201 Bytes
21c7db9
 
 
 
 
 
 
1
2
3
4
5
6
7
8
"""Adherence dynamics."""

from __future__ import annotations


def update_adherence(current: float, burden_score: float) -> float:
    return max(0.05, min(0.99, current - 0.1 * burden_score + 0.05))