getSampleRange