Merge pull request #444 from quantified-uncertainty/mixture-last-arg-fix

Mixture last argument can be float
This commit is contained in:
Ozzie Gooen 2022-04-30 14:52:58 -04:00 committed by GitHub
commit ad16c08e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,7 @@ module Helpers = {
| Error(err) => GenDistError(ArgumentError(err))
}
}
| Some(EvNumber(_))
| Some(EvDistribution(_)) =>
switch parseDistributionArray(args) {
| Ok(distributions) => mixtureWithDefaultWeights(distributions)