ECDF function

Posted wbloger

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ECDF function相关的知识,希望对你有一定的参考价值。

empirical cumulative distribution function(ECDF) 经验累积分布函数

def ecdf(data):
    """Compute ECDF for a one-dimensional array of measurements."""

    # Number of data points: n   
    n = len(data)

    # x-data for the ECDF: x
    x = np.sort(data)

    # y-data for the ECDF: y
    y = np.arange(1, n+1) / n

    #return x, y
    return x, y    

 













以上是关于ECDF function的主要内容,如果未能解决你的问题,请参考以下文章