Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Makes a CDF from a dictionary that maps values to frequencies.

Args:
   d: dictionary that maps values to frequencies.
   name: string name for the data.

Returns:
    Cdf object

        def MakeCdfFromDict(d, name=''):
    """Makes a CDF from a dictionary that maps values to frequencies.

    Args:
       d: dictionary that maps values to frequencies.
       name: string name for the data.

    Returns:
        Cdf object
    """
    return MakeCdfFromItems(d.iteritems(), name)
        


src/t/h/thinkstats-HEAD/thinkstats_resources/locomotive.py   thinkstats(Download)
        sequence of two floats, low and high
    """
    cdf = Cdf.MakeCdfFromDict(pmf.GetDict())
    prob = (1 - percentage/100.0) / 2
    interval = [cdf.Value(p) for p in [prob, 1-prob]]

src/t/h/thinkstats-HEAD/thinkstats_resources/irs.py   thinkstats(Download)
 
    pmf = Pmf.MakePmfFromHist(hist)
    cdf = Cdf.MakeCdfFromDict(pmf.GetDict())
    return hist, pmf, cdf