def weighted_tukey(distribution_or_population, count=None): """ Returns the weighted Tukey box-whisker boundaries for the given distribution, including the mean. These boundaries are based on the weighted distributions distribution and take into account the uncertainties in the measurements. :param distribution_or_population: The distribution for which to calculate the boundaries :param count: The number of values to use when creating the weighted probability population used to define the whiskers :return: A tuple containing 5 values: * minimum (whisker boundary) * lower quartile (box boundary) * median * upper quartile (box boundary) * maximum (whisker boundary) :rtype: tuple """ return unweighted_tukey(support.to_weighted_population( distribution_or_population, count ))
def weighted_two(distribution_or_population, count=None): """ Returns the weighted "Twos" box-whisker boundaries for the given distribution, including the median, where the whiskers are defined by the 2% and 98% percentiles. :param distribution_or_population: The distribution for which to calculate the boundaries :param count: The number of values to use when creating the weighted probability population :return: A tuple containing 5 values: * minimum (whisker boundary) * lower quartile (box boundary) * median * upper quartile (box boundary) * maximum (whisker boundary) :rtype: tuple """ return unweighted_two( support.to_weighted_population(distribution_or_population, count))
def weighted_tukey(distribution_or_population, count=None): """ Returns the weighted Tukey box-whisker boundaries for the given distribution, including the mean. These boundaries are based on the weighted distributions distribution and take into account the uncertainties in the measurements. :param distribution_or_population: The distribution for which to calculate the boundaries :param count: The number of values to use when creating the weighted probability population used to define the whiskers :return: A tuple containing 5 values: * minimum (whisker boundary) * lower quartile (box boundary) * median * upper quartile (box boundary) * maximum (whisker boundary) :rtype: tuple """ return unweighted_tukey( support.to_weighted_population(distribution_or_population, count))
def weighted_two(distribution_or_population, count=None): """ Returns the weighted "Twos" box-whisker boundaries for the given distribution, including the median, where the whiskers are defined by the 2% and 98% percentiles. :param distribution_or_population: The distribution for which to calculate the boundaries :param count: The number of values to use when creating the weighted probability population :return: A tuple containing 5 values: * minimum (whisker boundary) * lower quartile (box boundary) * median * upper quartile (box boundary) * maximum (whisker boundary) :rtype: tuple """ return unweighted_two( support.to_weighted_population(distribution_or_population, count) )