pasteur.hierarchy.generate_domain_list#
- pasteur.hierarchy.generate_domain_list(max_domain, common, u=1.3, fixed=[2, 4, 5, 8, 12])[source]#
Takes in a max_domain value and uses it to produce a new increasing domain list, based on u and fixed.
The strategy used is increasing the domain every time by the ratio u, where u > 1. For example: if u = 1.3, domain 10 becomes 13 etc.
For low domain values, however, this leads to repeating values and low increase, so the fixed domain list is used to specify the starting domain values.
If the fixed list goes higher than max_domain, only the values up to max_domain are kept, and max_domain is placed at the end.
Otherwise, the last fixed value is multiplied by u and ceiled. This repeats until surpassing max_domain, and the last value is replaced by max_domain.
common is a correction that ensures the minimum domain is bigger or equal to common + 1.