Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy array heaviside float values to 0 or 1

                      0   if x1 < 0
heaviside(x1, x2) =  x2   if x1 == 0
                      1   if x1 > 0
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #array #heaviside #float #values
ADD COMMENT
Topic
Name
2+8 =