Changes to how prior is implemented
Changes to how prior is implemented
modified fit_positive_function and make_min_model so that classes are substituted by functions. this has been used to make min model.