Check that the percentiles are in [0,1], so that using incorrect value
results in an ERROR and not segmentation fault.