• Nicolas George's avatar
    timefilter: internally compute feedback factors. · 3073aadf
    Nicolas George authored
    The feedback factors for the timefilter are directly computed from
    the expected period. This commit changes the init function to accept
    the period itself and compute the feedback factors internally,
    rather than having all client code duplicate the formulas.
    
    This commit also actually fixes the formulas: the current code had
    sqrt(2*o), but the correct formula, both theoretically and according
    to experimental testing, is sqrt(2)*o.
    
    Furthermore, it adds an exponential to feedback factors larger than
    1 with large periods.
    3073aadf