applyFading is an internal function for applying fading to exposure record.
Specifically, the following exposure records are multiplied by fading_factor:
n_k: the number of examinees completed the test so far, at each segment k.
f_k:
a_ik: the number of times each item i was administered to examinees, at each segment k
r_ik:
applyFading(exposure_record, segments_to_apply, simulation_constants)applyFading returns an updated exposure record.
a named list containing exposure records.
which segments to apply fading to.
a named list containing simulation constants.