Use the average value as magnitude. Use the maximum value as magnitude.