Take sampling factor into account

Change-Id: I3808cc07c44f1f0d4f886bebbc65e213bd0d1315
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/619
Merge "Take sampling factor into account"