# Path: metrology/exceptions.py
# class ArgumentException(MetrologyException):
#     pass


import math
from metrology.exceptions import ArgumentException



class Snapshot(object):
    MEDIAN_Q = 0.5
    P75_Q = 0.75
    P95_Q = 0.95
    P98_Q = 0.98
    P99_Q = 0.99
    P999_Q = 0.999

    def __init__(self, values):
        self.values = sorted(values)

    def value(self, quantile):
        if 0.0 > quantile > 1.0:

# Path: metrology/exceptions.py
# class ArgumentException(MetrologyException):
#     pass


# Path: metrology/stats/snapshot.py
import math
from metrology.exceptions import ArgumentException




class Snapshot(object):
    MEDIAN_Q = 0.5
    P75_Q = 0.75
    P95_Q = 0.95
    P98_Q = 0.98
    P99_Q = 0.99
    P999_Q = 0.999

    def __init__(self, values):
        self.values = sorted(values)

    def value(self, quantile):
        if 0.0 > quantile > 1.0:

            raise ArgumentException("Quantile must be between 0.0 and 1.0")