Changed mean computation to median
Merge pull request #77 from dzeber/gradual

Changed mean computation to median