Changed mean samples to unsigned int.
Removed legacy yMinimum/yMaximum variables.