Skip to content

Changes to ageCoeff(age)

Sean Stangl requested to merge LucasYoung:master into master

Created by: LucasYoung

This pull makes use of arrays indexed by age rather than a series of if-then statements to reduce the time complexity of the function to O(1).

I also made the arrays constants outside of the function rather than local variables. This may reduce the overall space usage of wilks.py, because we don't have to re-allocate variables each time the method is called.

Merge request reports