drbenvincent / delay-discounting-analysis

Hierarchical Bayesian estimation and hypothesis testing for delay discounting tasks
http://www.inferencelab.com/delay-discounting-analysis/
MIT License
23 stars 9 forks source link

abstract classes for discount function types #127

Closed drbenvincent closed 7 years ago

drbenvincent commented 7 years ago

We now have some discount function abstract classes (hyper1, hyper1mag effect, nonparametric) which other concrete models inherit from.

This has decreased code duplication and made it even easier to create new model types.

It’s also opened up the chance for having plotting or discount function calculation code in these classes.