mu -> mean (fixed)

Variable mu is not defined, should use median?