matrixverb.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:pyo-tools 作者: belangeo 项目源码 文件源码
def expmin(values, num):
    """
    Return a list of `num` exponentially distributed numbers from the
    list `values`, starting at the lowest one. The base is the constant `e`.
    """
    l = len(values)
    v = []
    for i in range(num):
        index = int((exp(i / num) - 1.0) / (e - 1.0) * l)
        index = clipint(index, l)
        v.append(values[index])
    return v
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号