stats_computation.py 文件源码

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

项目:MicrolensingLCOGT 作者: dg7541 项目源码 文件源码
def below5(mag, magerr):
    """This function measures the ratio of data points that are below 5 standard deviations
    from the mean magnitude.

    :param mag: the time-varying intensity of the lightcurve. Must be an array.
    :param magerr: photometric error for the intensity. Must be an array.

    :rtype: float
    """

    mag, magerr = remove_bad(mag, magerr)
    a = meanMag(mag, magerr) + 5*deviation(mag, magerr)

    below5 = len(np.argwhere(mag > a))  

    return below5
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号