# Example 1: Low Risk
# 2 new mets appearing 1 year after initial SRS
# BMV = 2 / 1 = 2
brain_metastasis_velocity(2, 1.0)
# Example 2: High Risk
# 8 new mets appearing 0.5 years (6 months) after initial SRS
# BMV = 8 / 0.5 = 16
brain_metastasis_velocity(8, 0.5)
Run the code above in your browser using DataLab