@staticmethod
def _get_percentage(sample_count, total_samples):
    """Return percentage of sample_count in total_samples."""
    if total_samples != 0:
        return 100 * round(float(sample_count) / total_samples, 3)
    return 0.0
