Numpy Array Heaviside Float Nilai ke 0 atau 1

                      0   if x1 < 0
heaviside(x1, x2) =  x2   if x1 == 0
                      1   if x1 > 0
DS in Training