How is the weighted fractional uptime of a Tor relay calculated?
Arma's "The lifecycle of a new relay" post mentions this statistic but does not describe it in detail:
Directory authorities assign the Guard flag to relays based on three characteristics: "bandwidth" (they need to have a large enough consensus weight), "weighted fractional uptime" (they need to be working most of the time), and "time known" (to make attacks more expensive, we don't want to give the Guard flag to relays that haven't been around a while first).