zernike.py 文件源码

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

项目:DimmiLitho 作者: vincentlv 项目源码 文件源码
def rnm(n,m,rho):
    """
    Return an array with the zernike Rnm polynomial calculated at rho points.
    """
    Rnm=zeros(rho.shape)
    S=(n-abs(m))/2
    for s in range (0,S+1):
        CR=pow(-1,s)*factorial(n-s)/ \
            (factorial(s)*factorial(-s+(n+abs(m))/2)* \
            factorial(-s+(n-abs(m))/2))
        p=CR*pow(rho,n-2*s)
        Rnm=Rnm+p
    Rnm[rho>1.0] = 0
    return Rnm
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号