for each relay, calculate the filtered mean for all relays and calculate the filtered ratio for each relay.