magphase.py 文件源码

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

项目:magphase 作者: CSTR-Edinburgh 项目源码 文件源码
def ph_dec(m_phs, m_phc, mode='angle'):  

    if mode == 'sign':    
        m_bs = np.arcsin(m_phs)
        m_bc = np.arccos(m_phc)   
        m_ph = np.sign(m_bs) * np.abs(m_bc)   

    elif mode == 'angle':
        m_ph = np.angle(m_phc + m_phs * 1j)

    return m_ph 


#==============================================================================
# From 'analysis_with_del_comp_and_ph_encoding_from_files'
# f0_type: 'f0', 'lf0'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号