📜  矩形函数 numpy - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:54.286000             🧑  作者: Mango

代码示例1
def rect(x):
    return where(abs(x)<=0.5, 1, 0)