DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+8 =
Submit