BioGearsEngine / core

Repository for libbiogears and all core utilities
Apache License 2.0
56 stars 48 forks source link

Scenario 2.1 - Population Sampled Actions / Scenario Generation / Population Generation 2 #88

Closed StevenAWhite closed 7 months ago

StevenAWhite commented 8 months ago

All Load functions now can be passed a ptr to a random_device. CDM::Property now has an optional field deviation. When present the value provided to any SEScalar or SEScalarQuantity is interpreted as the mean. The value inflated will be sampled from a normal distribtiion with mean=${value} and sigma=${deviation}. To avoid issue with multiple samples being taken. SE Properties elide the deviation value when Serializing data so it should only be present on manually maintained files.

CDM::Scenario now supports a field which can be used to enforce repeatability between runs when needed.

BG-CLI GENERATE POPULATION has been updated to Version 2.0. The revised population template allows the generation of multiple populations separated by a list of property/tags. A Distribution section contains a number of possible distributions which will be used based of the best match when generating patient files.

New Command BG-CLI GENERATE SCENARIO - Based on the Population Generator you can now generate scenario files from a tempalate. THis works a little differently the SCENARIO template takes in a scenario.template.in and produces a scneario_XXX.xml files based on the count request. Populations described in the template will replace placeholders of the form @VAR@ with sample values as described.